summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Syromiatnikov <esyr@redhat.com>2017-08-04 09:38:50 +0200
committerDmitry V. Levin <ldv@altlinux.org>2017-12-20 22:58:42 +0000
commit67c4b41ed0a313b361706264db74de747f410c91 (patch)
treef6ebca471953a90728bfe0d91de9e1de7a4a55cc
parent391446a3593badef85db21e3d66f40d83ca5d097 (diff)
downloadstrace-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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/strace.c b/strace.c
index 3d015c7a9..d15bef22e 100644
--- a/strace.c
+++ b/strace.c
@@ -294,8 +294,10 @@ die(void)
if (strace_tracer_pid == getpid()) {
cflag = 0;
cleanup();
+ exit(1);
}
- exit(1);
+
+ _exit(1);
}
static void