using _exit in fork() (Kamo Hiroyasu)
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 26 Nov 2005 20:10:07 +0000 (20:10 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 26 Nov 2005 20:10:07 +0000 (20:10 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1669 c046a42c-6fe2-441c-8c8c-71466251a162

vl.c

diff --git a/vl.c b/vl.c
index 4f19dd0..06d41c1 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -2099,7 +2099,7 @@ static int net_tap_init(VLANState *vlan, const char *ifname1,
                 *parg++ = ifname;
                 *parg++ = NULL;
                 execv(setup_script, args);
-                exit(1);
+                _exit(1);
             }
             while (waitpid(pid, &status, 0) != pid);
             if (!WIFEXITED(status) ||