Navigation

Operators and Keywords

Function List:

C++ API

: [err, msg] = kill (pid, sig)

Send signal sig to process pid.

If pid is positive, then signal sig is sent to pid.

If pid is 0, then signal sig is sent to every process in the process group of the current process.

If pid is -1, then signal sig is sent to every process except process 1.

If pid is less than -1, then signal sig is sent to every process in the process group -pid.

If sig is 0, then no signal is sent, but error checking is still performed.

Return 0 if successful, otherwise return -1.

Package: octave