M
Myron Turner
I'm using a child handler which I've used elsewhere on various
systems, but currently I am getting this message:
POSIX::WNOHANG redefined
my handler is as follows:
sub childhandler {
while((my $retv = waitpid( -1, &POSIX::WNOHANG() ))>0) {
$wait_pid[$wait_index] = $retv;
$wait_index++;
}
$SIG{CHLD} = \&childhandler;
}
I've tried this various ways:
waitpid( -1, &POSIX::WNOHANG)
waitpid( -1, &WNOHANG)
waitpid( -1,WNOHANG)
I've always used the latter without any trouble.
Thanks,
Myron Turner
systems, but currently I am getting this message:
POSIX::WNOHANG redefined
my handler is as follows:
sub childhandler {
while((my $retv = waitpid( -1, &POSIX::WNOHANG() ))>0) {
$wait_pid[$wait_index] = $retv;
$wait_index++;
}
$SIG{CHLD} = \&childhandler;
}
I've tried this various ways:
waitpid( -1, &POSIX::WNOHANG)
waitpid( -1, &WNOHANG)
waitpid( -1,WNOHANG)
I've always used the latter without any trouble.
Thanks,
Myron Turner