Use getpgid to determine process group of service process.
authorDavin McCall <davmac@davmac.org>
Mon, 3 Jul 2017 00:10:28 +0000 (01:10 +0100)
committerDavin McCall <davmac@davmac.org>
Mon, 3 Jul 2017 00:10:28 +0000 (01:10 +0100)
commit3768e06584204f265cc4f12369712954a01ea16b
tree7f86923b37248ceb8160239bafb0fa305ceaf085
parent0a5a2ad9394dc66de80da17d3cee63fee217d670
Use getpgid to determine process group of service process.

Using pid (i.e. 'kill(-pid, signo)') doesn't work if the process has
double-forked but not set a new process group for the child, and
anyway it's not clear if POSIX actually guarantees that process group
IDs will match process IDs.
src/service.cc
src/service.h