Rev 714: fixed the bug that make "onnode N service ctdb start" hang
in http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Sat Jan 5 01:09:29 GMT 2008
------------------------------------------------------------
revno: 714
revision-id:tridge at samba.org-20080105010929-v8lbmtct6w5yygqq
parent: tridge at samba.org-20080105010900-5c7uv6cs1f761q1g
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge.stable
timestamp: Sat 2008-01-05 12:09:29 +1100
message:
fixed the bug that make "onnode N service ctdb start" hang
modified:
server/ctdb_daemon.c ctdb_daemon.c-20070409200331-3el1kqgdb9m4ib0g-1
=== modified file 'server/ctdb_daemon.c'
--- a/server/ctdb_daemon.c 2007-11-11 23:53:11 +0000
+++ b/server/ctdb_daemon.c 2008-01-05 01:09:29 +0000
@@ -597,6 +597,11 @@
if (do_fork) {
setsid();
+ close(0);
+ if (open("/dev/null", O_RDONLY) != 0) {
+ DEBUG(0,(__location__ " Failed to setup stdin on /dev/null\n"));
+ exit(11);
+ }
}
block_signal(SIGPIPE);
More information about the samba-cvs
mailing list