in reply to Re: Re: no sigchild under win32 ?
in thread no sigchild under win32 ?

why cant i just do something like
END{ kill(SIGCHLD,$_parent); }
in the child or so? in fact i tried this but i i got :
Your vendor has not defined POSIX macro SIGCHILD, used at $scriptname +line $line
and since my english is not too good i dont realy get what this means and what i should do

Replies are listed 'Best First'.
Re: Re: Re: Re: no sigchild under win32 ?
by random (Monk) on Jun 18, 2002 at 15:28 UTC

    Umm, I'll be the first to admit that signal handlers are most likely my weakest area of expertise, but it seems pretty clear that the code you give and the error are for two different things, one named SIGCHLD and one SIGCHILD. Did you copy and paste the actual code you used?

    -Mike-
      peripc - signals

      'Perl uses a simple signal handling model: the %SIG hash contains names or references of user-installed signal handlers.'

      Simply put, SIGCHILD, SIGCHLD should be $SIG{CHLD}, $SIG{CLD}. Even so, the code should read something like kill($signal, $processid).