Don't ask to ask, just ask | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
As said, you get the SIPGPIPE immediately after the first unsuccessful write, so you may want to keep your amount of lines short for each write. If you have control of the child you could make it send a HUP or USR1 to its parent after closing the file handle. Update: Oh I see you haven't, a compiled C program... hm. A wrapper, maybe?
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In reply to Re^3: Detect whether a writeable filehandle has closed?
by shmem
|
|