]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
some debug code
authorAndrew Tridgell <tridge@samba.org>
Fri, 27 Apr 2007 14:42:43 +0000 (16:42 +0200)
committerAndrew Tridgell <tridge@samba.org>
Fri, 27 Apr 2007 14:42:43 +0000 (16:42 +0200)
(This used to be ctdb commit 957801ad6285c21fd11469a60dbdcc170e7009cb)

ctdb/common/ctdb_control.c
ctdb/include/ctdb_private.h

index 7a9327ec57467422559a9a10cd37922135f069c9..8020f2e6fe1d7efe7063929d31828844b0752fac 100644 (file)
@@ -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: {
index 848941f84bfa781387bf3e90558230e147babaa0..025ba0119aedb05163562ab4cd91012ef7e6f33a 100644 (file)
@@ -34,6 +34,8 @@
 
 #define CTDB_CURRENT_NODE  0xF0000001
 #define CTDB_BROADCAST_VNN 0xF0000002
+
+
 /*
   an installed ctdb remote call
 */