core: remove "misuse" of getpgid() in systemd-shutdown
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Mon, 30 Oct 2017 16:10:37 +0000 (16:10 +0000)
committerAlan Jenkins <alan.christopher.jenkins@gmail.com>
Mon, 30 Oct 2017 16:10:37 +0000 (16:10 +0000)
commit3448a9698025844b0ddca6e4638b720b13180ffc
treeda6c97c534d0d6201edbd7c059d959afbcabc214
parent27b8198e132b3763d8a18ddf4ef2ef0713e849f6
core: remove "misuse" of getpgid() in systemd-shutdown

Using `kill()`  with a signal of 0 is a slightly more documented idiom for
checking whether a process still exists.  It is mentioned explicitly in
man pages.  This avoids the need to comment the call as "misuse".
A comment is still necessary - in fact this idiom is even more confusing if
you don't know how it works.  But it's easy enough to explain.
src/core/killall.c