diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-04-27 16:42:43 +0200 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2007-04-27 16:42:43 +0200 |
commit | eee3912c9956fa61f160e0c2df38aaa215fa8f74 (patch) | |
tree | 8c7b101bcbc64d5ae23bd420e69478924f4ed578 /ctdb | |
parent | 3dc6331aee4d2d37c03fdcd52e62762463c1a00f (diff) | |
download | samba-eee3912c9956fa61f160e0c2df38aaa215fa8f74.tar.gz samba-eee3912c9956fa61f160e0c2df38aaa215fa8f74.tar.xz samba-eee3912c9956fa61f160e0c2df38aaa215fa8f74.zip |
some debug code
(This used to be ctdb commit 957801ad6285c21fd11469a60dbdcc170e7009cb)
Diffstat (limited to 'ctdb')
-rw-r--r-- | ctdb/common/ctdb_control.c | 6 | ||||
-rw-r--r-- | ctdb/include/ctdb_private.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ctdb/common/ctdb_control.c b/ctdb/common/ctdb_control.c index 7a9327ec57..8020f2e6fe 100644 --- a/ctdb/common/ctdb_control.c +++ b/ctdb/common/ctdb_control.c @@ -51,9 +51,13 @@ static int32_t ctdb_control_dispatch(struct ctdb_context *ctdb, switch (opcode) { case CTDB_CONTROL_PROCESS_EXISTS: { pid_t pid; + int32_t ret; CHECK_CONTROL_DATA_SIZE(sizeof(pid)); pid = *(pid_t *)indata.dptr; - return kill(pid, 0); + ret = kill(pid, 0); + DEBUG(5,("process_exists on %u:%u gave %d\n", + ctdb->vnn, pid, ret)); + return ret; } case CTDB_CONTROL_SET_DEBUG: { diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index 848941f84b..025ba0119a 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -34,6 +34,8 @@ #define CTDB_CURRENT_NODE 0xF0000001 #define CTDB_BROADCAST_VNN 0xF0000002 + + /* an installed ctdb remote call */ |