diff options
author | Eugene Syromiatnikov <esyr@redhat.com> | 2017-08-04 09:38:50 +0200 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2017-12-20 22:58:42 +0000 |
commit | 67c4b41ed0a313b361706264db74de747f410c91 (patch) | |
tree | f6ebca471953a90728bfe0d91de9e1de7a4a55cc | |
parent | 391446a3593badef85db21e3d66f40d83ca5d097 (diff) | |
download | strace-67c4b41ed0a313b361706264db74de747f410c91.tar.gz |
strace.c: use _exit() instead of exit() in child's die()
Let's keep child's death routine as minimalistic as possible for the
cases when vfork() is used instead of fork() on systems that lack MMU.
* strace.c (die) <!(strace_tracer_pid == getpid())>: Call _exit().
-rw-r--r-- | strace.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -294,8 +294,10 @@ die(void) if (strace_tracer_pid == getpid()) { cflag = 0; cleanup(); + exit(1); } - exit(1); + + _exit(1); } static void |