Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Vague segfault question

by ChrisDennis (Sexton)
on Feb 04, 2012 at 13:04 UTC ( [id://951796]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Vague segfault question
in thread open3() problem

Thanks for your reply.

I'm confused now about the use of kill.

Kill says

Unlike in the shell, if SIGNAL is negative, it kills process groups instead of processes.

But perlipc says

Sending a signal to a negative process ID means that you send the signal to the entire Unix process group.
Which of those is true?

Replies are listed 'Best First'.
Re^4: Vague segfault question
by Anonymous Monk on Feb 04, 2012 at 14:38 UTC

    Which of those is true?

    Both, they're not mutually exclusive :) if you keep reading it also says

    The behavior of kill when a *PROCESS* number is zero or negative depends on the operating system. For example, on POSIX-conforming systems, zero will signal the current process group and -1 will signal all processes.

    See also what perlport#kill says

      The kill documentation seems to omit what the Camel book adds, that a negative process id (not just -1) will kill all processes in the process group on Posix-conforming systems.

        When the docs say it depends on the operating system, you're supposed to consult the operating system documentation (man kill)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://951796]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-19 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found