Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
734a94a
)
Doc rsync_panic_handler()
author
Martin Pool
<mbp@samba.org>
Mon, 8 Apr 2002 07:46:34 +0000
(07:46 +0000)
committer
Martin Pool
<mbp@samba.org>
Mon, 8 Apr 2002 07:46:34 +0000
(07:46 +0000)
main.c
patch
|
blob
|
blame
|
history
diff --git
a/main.c
b/main.c
index
8aad59c
..
37c4618
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-827,6
+827,14
@@
const char *get_panic_action(void)
}
}
+/**
+ * Handle a fatal signal by launching a debugger, controlled by $RSYNC_PANIC_ACTION.
+ *
+ * This signal handler is only installed if we were configured with
+ * --enable-maintainer-mode. Perhaps it should always be on and we
+ * should just look at the environment variable, but I'm a bit leery
+ * of a signal sending us into a busy loop.
+ **/
static RETSIGTYPE rsync_panic_handler(int UNUSED(whatsig))
{
char cmd_buf[300];
static RETSIGTYPE rsync_panic_handler(int UNUSED(whatsig))
{
char cmd_buf[300];