in reply to Blocking filehandle (?)

What none of these sources mentioned is that each time one of these filehandles is closed, an orphaned tail PID is left hanging out there.

I don't think so. As per the documentation and confirmed by experimentation, if you close the file handle, it blocks until the child exits.

The problem is that it could block for a long time — it tail doesn't have anything to write, it won't notice the pipe is closed — unless you kill tail using a signal first.

Replies are listed 'Best First'.
Re^2: Blocking filehandle (?)
by Equidor (Sexton) on Aug 24, 2010 at 23:15 UTC

    Sorry ikegami, but my tail PIDs are still there after the filehandle is closed, even after the script successfully exits, every time. But that's not the problem. The problem is blocking (or something) while the filehandle is open -- and nothing shows on the curses display.