------------------------------------------------------------
revno: 467
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Andrew Tridgell <[EMAIL PROTECTED]>
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