diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-03-31 19:50:30 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-03-31 19:50:30 -0400 |
commit | 7989e1f2d79891ff73dea0ede1c98c47b62547db (patch) | |
tree | 136628bc29d3a058ca2ed3ff7c7647e8eee84479 /src/core/main.c | |
parent | cc1f918dda4193c7fd2a03de4ab715be67017a36 (diff) |
Partially revert e62d8c394474
The ~80 chars per line part wasn't well received.
Diffstat (limited to 'src/core/main.c')
-rw-r--r-- | src/core/main.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/core/main.c b/src/core/main.c index bd7fc468b4..35cd7724c3 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -118,8 +118,7 @@ _noreturn_ static void crash(int sig) { pid = fork(); if (pid < 0) - log_error("Caught <%s>, cannot fork for core dump: %s", - signal_to_string(sig), strerror(errno)); + log_error("Caught <%s>, cannot fork for core dump: %s", signal_to_string(sig), strerror(errno)); else if (pid == 0) { struct rlimit rl; @@ -151,15 +150,11 @@ _noreturn_ static void crash(int sig) { /* Order things nicely. */ r = wait_for_terminate(pid, &status); if (r < 0) - log_error("Caught <%s>, waitpid() failed: %s", - signal_to_string(sig), strerror(-r)); + log_error("Caught <%s>, waitpid() failed: %s", signal_to_string(sig), strerror(-r)); else if (status.si_code != CLD_DUMPED) - log_error("Caught <%s>, core dump failed.", - signal_to_string(sig)); + log_error("Caught <%s>, core dump failed.", signal_to_string(sig)); else - log_error("Caught <%s>, dumped core as pid %lu.", - signal_to_string(sig), - (unsigned long) pid); + log_error("Caught <%s>, dumped core as pid %lu.", signal_to_string(sig), (unsigned long) pid); } } @@ -190,8 +185,7 @@ _noreturn_ static void crash(int sig) { _exit(1); } - log_info("Successfully spawned crash shell as pid %lu.", - (unsigned long) pid); + log_info("Successfully spawned crash shell as pid %lu.", (unsigned long) pid); } log_info("Freezing execution."); |