Files
cloudron-box/src
girish@cloudron.io bcb0e61bfc Kill child processes
On Unix, child processes are not killed when parent dies.

Each process is part of a process group (pgid). When pgid == pid,
it is the process group leader.

node creates child processes with the parent as the group leader
(detached = false).

You can send a signal to entire group using kill(-pgid), as in,
negative value in argument. Systemd can be made to do this by
setting the KillMode=control-group.

Unrelated: Process groups reside inside session groups. Each session
group has a controlling terminal. Only one process in the session
group has access to the terminal. Process group is basically like
a bash pipeline. A session group is the entire login session with only
one process having terminal access at a time.

Fixes #543
2016-01-21 17:44:17 -08:00
..
2016-01-13 16:46:01 -08:00
2015-12-17 20:30:30 -08:00
2016-01-21 15:53:51 -08:00
2016-01-05 14:33:33 +01:00
2016-01-20 14:50:06 +01:00
2016-01-14 12:56:35 -08:00
2016-01-17 16:01:17 +01:00
2015-12-15 12:52:41 -08:00
2016-01-19 13:35:18 +01:00
2016-01-17 15:50:20 +01:00
2015-12-24 12:46:42 -08:00
2015-12-11 12:24:52 -08:00
2015-11-27 10:05:57 +01:00
2016-01-21 15:53:51 -08:00
2015-09-05 09:17:46 -07:00
2016-01-20 13:10:16 +01:00
2015-12-11 21:49:24 -08:00
2015-12-15 09:53:37 -08:00
2015-12-23 14:27:26 -08:00
2015-12-23 15:22:36 -08:00
2015-12-11 22:39:13 -08:00
2015-11-08 23:21:55 -08:00
2016-01-21 17:44:17 -08:00
2016-01-20 15:41:29 +01:00
2016-01-19 12:39:54 +01:00
2015-12-11 21:49:24 -08:00
2015-12-15 09:53:37 -08:00