1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/ctdb/common
Rusty Russell e1b59b6a47 eventscript: don't do debugging system() from inside signal handler
In the case of a timeout, we dump a log of what's happening to a file
in /tmp.  We do it from the signal handler, which is an unreliable hack
(BZ58365).

Instead, create another (lower-priority) child to do the dump, then
kill the timedout script.

Note that this doesn't quite work as intended (the dump is often run
after the script has been killed), so the next patch resolves this.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>


(This used to be ctdb commit 7ee5ecc8d53e78e2dec21197b74a74cc4ae1834c)
2010-04-08 15:13:29 +09:30
..
cmdline.c update the handling of debug levels so that we always can use a literal instead of a numeric value. 2009-07-01 09:17:13 +10:00
ctdb_io.c ctdb: migrate to new dlinklist.h from Samba 2010-02-09 09:20:55 +11:00
ctdb_logging.c Make the size of the in memory ringbuffer for keeping the recent log messages 2010-01-15 15:38:56 +11:00
ctdb_ltdb.c Leave sequence number alone when merely migrating records. 2010-02-16 11:02:25 +11:00
ctdb_message.c When we dispatch a message to a handler, pass the data as a real talloc object so that the handler can talloc_steal() the message content. 2009-07-02 12:58:49 +10:00
ctdb_util.c eventscript: don't do debugging system() from inside signal handler 2010-04-08 15:13:29 +09:30
rb_tree.c merge from ronnie 2008-02-04 20:07:15 +11:00
rb_tree.h In the recovery daemon, keep track of which node we have assigned public ip 2010-04-08 14:25:26 +10:00
system_aix.c move common code of system_linux.c and system_aix.c into new system_common.c 2009-02-28 03:08:31 +01:00
system_common.c move common code of system_linux.c and system_aix.c into new system_common.c 2009-02-28 03:08:31 +01:00
system_linux.c Drop the debug level for logging fd creation to DEBUG_DEBUG 2010-02-04 06:37:41 +11:00