in reply to Re: Signal to parent-process. Does it affect it's children?
in thread Signal to parent-process. Does it affect it's children?
What happens in my process is that I'm not having any waitpid but instead polling to check if a new line has been printed on the stream.
Let me put the exact code since this might be something specific:
$selector = IO::Select->new(); $selector->add(*CMD_ERR, *CMD_OUT); while(@ready = $selector->can_read) { foreach my $fh (@ready) { if(fileno($fh) == fileno(CMD_ERR)) { my $line = scalar <CMD_ERR>; print $line; } } }
UPDATE: I've tried this on two systems. Opensolaris and SLC4, both 32 bit. My perl version is: v5.8.4
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Signal to parent-process. Does it affect it's children?
by Perlbotics (Archbishop) on Sep 08, 2008 at 21:33 UTC | |
by rapide (Beadle) on Sep 09, 2008 at 15:45 UTC | |
by Perlbotics (Archbishop) on Sep 10, 2008 at 11:56 UTC | |
by Perlbotics (Archbishop) on Sep 10, 2008 at 15:19 UTC | |
by rapide (Beadle) on Sep 11, 2008 at 13:00 UTC | |
| |
by rapide (Beadle) on Sep 10, 2008 at 14:25 UTC |