Commit 4edc7256 authored by Niels Möller's avatar Niels Möller
Browse files

(fatal) [WITH_GCOV]: Call fork, so that we can

call exit() and also dump core.

Rev: src/werror.c:1.70
parent b618db52
......@@ -696,10 +696,15 @@ fatal(const char *format, ...)
sleep(4711);
#endif
#if WITH_GCOV
exit(255);
#else
abort();
/* We want the process to exit, so that it writes profiling data,
but we also want it to dump core. So let's fork. */
if (fork())
/* Let the parent process exit (we also exit if fork fails, but
that case doesn't really matter here) */
exit(255);
#endif
abort();
}
static unsigned
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment