Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Kill ¶
Kill kills a process. If the process has Setpgid == true, then we have anticipated that it might spawn its own child processes, so we've given it a process group ID (PGID) equal to its process id (PID) and given its child processes will inherit the PGID, we can kill that group, rather than killing the process itself.
func PrepareForChildren ¶
PrepareForChildren ensures that child processes of this parent process will share the same group id as the parent, meaning when the call Kill on the parent process, we'll kill the whole group, parent and children both. Gruesome when you think about it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.