Rev 203: some debug code in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Fri Apr 27 14:42:44 GMT 2007


------------------------------------------------------------
revno: 203
revision-id: tridge at samba.org-20070427144243-b3qnoqoox7t2yp1x
parent: tridge at samba.org-20070427132613-jlz3n8rz4icubshz
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Fri 2007-04-27 16:42:43 +0200
message:
  some debug code
modified:
  common/ctdb_control.c          ctdb_control.c-20070426122724-j6gkpiofhbwdin63-1
  include/ctdb_private.h         ctdb_private.h-20061117234101-o3qt14umlg9en8z0-13
=== modified file 'common/ctdb_control.c'
--- a/common/ctdb_control.c	2007-04-27 13:14:36 +0000
+++ b/common/ctdb_control.c	2007-04-27 14:42:43 +0000
@@ -51,9 +51,13 @@
 	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: {

=== modified file 'include/ctdb_private.h'
--- a/include/ctdb_private.h	2007-04-27 13:26:13 +0000
+++ b/include/ctdb_private.h	2007-04-27 14:42:43 +0000
@@ -34,6 +34,8 @@
 
 #define CTDB_CURRENT_NODE  0xF0000001
 #define CTDB_BROADCAST_VNN 0xF0000002
+
+
 /*
   an installed ctdb remote call
 */



More information about the samba-cvs mailing list