Add a proper function to process a process-exist control in the daemon.
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 2 Dec 2009 02:58:27 +0000 (13:58 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 2 Dec 2009 02:58:27 +0000 (13:58 +1100)
commit157807af72ed4f7314afbc9c19756f9787b92c15
treee2d103a7890329455be7d1020b0764a19c4b459c
parentf75d379377f5d4abbff2576ddc5d58d91dc53bf4
Add a proper function to process a process-exist control in the daemon.

This controls is only used by samba when samba wants to check if a subrecord held by a <node-id>:<smbd-pid> is still valid or if it can be reclaimed.

If the node is banned or stopped, we kill the smbd process and return that the process does not exist to the caller. This allows us to recover subrecords from stopped/banned nodes where smbd is hung waiting for the databases to thaw.

bz58185
include/ctdb_private.h
server/ctdb_control.c
server/ctdb_daemon.c