CAT-SOOP API: catsoop.process
Members
-
catsoop.process.libc (
CDLL)The
ctypes.CDLLobject representing libc (which lives in different places on different platforms). Used incatsoop.process.set_pdeathsig.
-
catsoop.process.set_pdeathsig (
function, lines 41-69)Create a function that can be used to set the signal that the calling process receives when its parent process dies (not supported on Mac OSX).
This is used when starting new processes to try to make sure they die if CAT-SOOP is killed.
Optional Parameters:
sig(defaultsignal.SIGTERM): the signal to be sent to this process when its parent dies
Returns: a function of no arguments that, when called, sets the parent process death signal of the calling process to the value given by
sig. On Mac OSX, instead returns a function of no arguments that does nothing when called.