lockwait: Pass CTDB daemon PID on command line
authorAmitay Isaacs <amitay@gmail.com>
Fri, 5 Apr 2013 04:31:26 +0000 (15:31 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Mon, 8 Apr 2013 01:16:55 +0000 (11:16 +1000)
commit1d7db16870c3e166f00669eb46c57fac765d0e1e
tree21f3152104ded8fade0faf051a06d2a0f42c9c3a
parent34da547bd3534386e83056bc82b1ee7d9b2148f8
lockwait: Pass CTDB daemon PID on command line

In lockwait helper process we cannot rely on getppid() to find the pid
of CTDB daemon as CTDB daemon can go away before the helper executes. In
which case, ctdb helper process will hang around forever.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
server/ctdb_lockwait.c
server/ctdb_lockwait_helper.c