Rev 467: more unused code in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Tue Jun 5 05:17:53 GMT 2007


------------------------------------------------------------
revno: 467
revision-id: tridge at samba.org-20070605051753-8zmbmalk19r44hqw
parent: tridge at samba.org-20070605051724-z3962fd9tv3i8pw2
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Tue 2007-06-05 15:17:53 +1000
message:
  more unused code
modified:
  common/ctdb_daemon.c           ctdb_daemon.c-20070409200331-3el1kqgdb9m4ib0g-1
=== modified file 'common/ctdb_daemon.c'
--- a/common/ctdb_daemon.c	2007-06-05 05:17:24 +0000
+++ b/common/ctdb_daemon.c	2007-06-05 05:17:53 +0000
@@ -511,26 +511,6 @@
 
 
 
-static void ctdb_read_from_parent(struct event_context *ev, struct fd_event *fde, 
-			 uint16_t flags, void *private_data)
-{
-	int *fd = private_data;
-	int cnt;
-	char buf;
-
-	/* XXX this is a good place to try doing some cleaning up before exiting */
-	cnt = read(*fd, &buf, 1);
-	if (cnt==0) {
-		DEBUG(2,(__location__ " parent process exited. filedescriptor dissappeared\n"));
-		exit(1);
-	} else {
-		DEBUG(0,(__location__ " ctdb: did not expect data from parent process\n"));
-		exit(1);
-	}
-}
-
-
-
 /*
   create a unix domain socket and bind it
   return a file descriptor open on the socket 



More information about the samba-cvs mailing list