fifo: keep stdin open and add anything read there to log stream also

The problem with closing stdin, as originally done, was that the pipe
from the parent daemon process still exists, although we've closed it
and are thus no longer reading it. If the parent tries to write to that
pipe it will hang.