X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/734a94a20c7ee4bd787eb434d21d8be1f24f7774..67684d038de4c18431af0ccc17f55efbf4f20eb8:/main.c diff --git a/main.c b/main.c index 8aad59cd..37c46183 100644 --- 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];