MCPcopy Create free account
hub / github.com/RsyncProject/rsync / get_panic_action

Function get_panic_action

main.c:1683–1690  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1681 **/
1682#ifdef MAINTAINER_MODE
1683const char *get_panic_action(void)
1684{
1685 const char *cmd_fmt = getenv("RSYNC_PANIC_ACTION");
1686
1687 if (cmd_fmt)
1688 return cmd_fmt;
1689 return "xterm -display :0 -T Panic -n Panic -e gdb /proc/%d/exe %d";
1690}
1691
1692/**
1693 * Handle a fatal signal by launching a debugger, controlled by $RSYNC_PANIC_ACTION.

Callers 2

print_rsync_versionFunction · 0.85
rsync_panic_handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected