in reply to kill(9, -9) or kill(-9, 9) ?

Just by reading both manual slices in perldoc I found out that SysV is killing the process groups and also the processes. Whereby every other OS is just killing the process groups.

Yet you might want to build a test case and walk through it on as many OSs as possible.

So... are you able to kill process groups cross-platform? I would say so. You just aren't able to kill the groups AND the processes. I.e. you might have to kill those seperately.

One more thing for you to read would be perldoc perlport which specifies the following golden morsel: Don't count on signals or %SIG for anything..

Could you give us some info on what you try to archive, so that we could give you a bit more constructive help?

/oliver/

Replies are listed 'Best First'.
Re: Re: kill(9, -9) or kill(-9, 9) ?
by Pardus (Pilgrim) on Jan 10, 2004 at 20:53 UTC
    I'm trying to do a complete implementation of a shell with job-control in pure perl, see http://zoidberg.sf.net.

    Currently the SysV method seems to work (on linux that is) except for some dark and obscure bugs, I was hoping that by coming to understand all the hidden features of kill() I could uncover some of these bugs.

    --
    Jaap Karssenberg || Pardus (Larus)? <pardus@cpan.org>
    >>>> Zoidberg: So many memories, so many strange fluids gushing out of patients' bodies.... <<<<