diff options
author | Amitay Isaacs <amitay@gmail.com> | 2013-06-06 16:42:02 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2013-06-14 16:39:48 +1000 |
commit | d0c858f21171b9c7c476e7252fc212469353ba32 (patch) | |
tree | ebeda7b08bea6e54066823285be1d598839ba385 /ctdb/tcp/tcp_connect.c | |
parent | 27ba5b44b62e56ad4b32dbb71dd4ca5371a2d533 (diff) | |
download | samba-d0c858f21171b9c7c476e7252fc212469353ba32.tar.gz samba-d0c858f21171b9c7c476e7252fc212469353ba32.tar.xz samba-d0c858f21171b9c7c476e7252fc212469353ba32.zip |
ctdbd: Make sure we don't kill init process by mistake
If getpgrp() fails, it will return -1 and that will send KILL signal to init
process (PID 1). This does not happen on RHEL, but does on AIX.
Reported-by: Chris Cowan <cc@us.ibm.com>
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
(This used to be ctdb commit edb2a3556d03e248b42f63dd2c62382b723bc98f)
Diffstat (limited to 'ctdb/tcp/tcp_connect.c')
0 files changed, 0 insertions, 0 deletions