469,365 Members | 1,963 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,365 developers. It's quick & easy.

POSIX::WNOHANG redefined

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
Sep 23 '05 #1
0 4921

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.