kill(-1,sig)
Quoted 1 line
Of course, a language lawyer will call "self" a "system process"
No, the standard very explicitly allow signalling oneself. (And Linux also allowed that, e.g. in kill(0,sig), only until now not in kill(-1,sig).)
Quoted 2 lines
Quoted 2 lines
Argh, I hate this. I fail to see what progress a process could make if it kills everything _and_ itself.
Note that kill() is just a function that sends a signal. The signal may well be SIGWINCH or SIGSTOP or so.
Andries