Permalink
Browse files

Use the WNOHANG constant rather than the magic 0. Skip child reaping

on Win32.  It seems to cause problems of the "segfault" variety.
  • Loading branch information...
1 parent 70bf473 commit a3a9a0c5430a468fd9ce8fcb725d020cc5bf49ca @rcaputo committed Dec 23, 2005
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/POE/Resource/Signals.pm
@@ -150,9 +150,9 @@ sub _data_sig_finalize {
%_safe_signals = ();
- {
+ unless (RUNNING_IN_HELL) {
local $!;
- until ((my $pid = waitpid( -1, 0 )) == -1) {
+ until ((my $pid = waitpid( -1, WNOHANG )) == -1) {
_warn( "Child process PID:$pid reaped: $!\n" );
$finalized_ok = 0;
}

0 comments on commit a3a9a0c

Please sign in to comment.