Try to fix case where we can't getpgid() treating pid == pgid.
authorDavin McCall <davmac@davmac.org>
Fri, 24 May 2019 10:54:02 +0000 (20:54 +1000)
committerDavin McCall <davmac@davmac.org>
Fri, 24 May 2019 10:54:02 +0000 (20:54 +1000)
commit602da455ed629b353e523226321cbf549413709b
treebf87a2143a5d46955a542117acc76b7b681e8852
parent61c2dbdb329f3c57dd77888c8715f3b9dce68fd7
Try to fix case where we can't getpgid() treating pid == pgid.

The logic behind this is: if we can't use getpgid(), it's because the
process is in a different session. If that's the case, it must be a
process group leader with pgid == pid.
src/baseproc-service.cc