From 4a2c9dd7630ce51a660e1aa14e10bc6fbc4621c4 Mon Sep 17 00:00:00 2001 From: Iliyan Malchev Date: Mon, 2 Apr 2012 08:20:56 -0700 Subject: replace _exit() with exit() When the emulator is compiled with -pg, it generates a stats file (gmon.out) upon exiting, as long as the exit it done when main() returns normally or exit() is called. Calling _exit() or exiting via an unhandled signal will not cause gmon.out to be generated. Change-Id: I0d5ea5a0b0314f97d2fdc0c92fd6f38c65377eb9 Signed-off-by: Iliyan Malchev --- net-android.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net-android.c') diff --git a/net-android.c b/net-android.c index 6459eff..50b816c 100644 --- a/net-android.c +++ b/net-android.c @@ -1485,7 +1485,7 @@ static int launch_script(const char *setup_script, const char *ifname, int fd) *parg++ = (char *)ifname; *parg++ = NULL; execv(setup_script, args); - _exit(1); + exit(1); } else if (pid > 0) { while (waitpid(pid, &status, 0) != pid) { /* loop */ -- cgit v1.1