in reply to Re: Proposal how to make modules using fork more portable
in thread Proposal how to make modules using fork more portable
For the record, this is all garbage.
The perceived 'problem' with kill has nothing whatsoever to do with perl's fork emulation.
It has everything to do with signals not being able to interrupt blocking IO.
It is the same problem that means that this doesn't work:
{ alarm 10; my $in = <STDIN>; }
Signals won't interrupt IO. Therefore, if you send a signal to a pseudo-process (thread) that is currently blocked doing IO, it won't interrupt it until the IO completes. The limitation is with the signals, not the pseudo-fork.
And documenting a limitation of signals, as a bug with fork emulation is just dumb. Presumably, p5p will reject the attempt.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Proposal how to make modules using fork more portable
by Corion (Patriarch) on Apr 01, 2011 at 19:31 UTC | |
by BrowserUk (Patriarch) on Apr 01, 2011 at 20:10 UTC | |
by Corion (Patriarch) on Apr 01, 2011 at 20:22 UTC | |
by BrowserUk (Patriarch) on Apr 01, 2011 at 20:44 UTC | |
by Corion (Patriarch) on Apr 01, 2011 at 20:58 UTC | |
|