From: Andrew Tridgell Date: Fri, 27 Apr 2007 14:42:43 +0000 (+0200) Subject: some debug code X-Git-Tag: tevent-0.9.20~348^2~2828 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eee3912c9956fa61f160e0c2df38aaa215fa8f74;p=thirdparty%2Fsamba.git some debug code (This used to be ctdb commit 957801ad6285c21fd11469a60dbdcc170e7009cb) --- diff --git a/ctdb/common/ctdb_control.c b/ctdb/common/ctdb_control.c index 7a9327ec574..8020f2e6fe1 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 848941f84bf..025ba0119ae 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 */