summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-11-26 20:10:07 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-11-26 20:10:07 +0000
commit4a38940da0c0376ed29252757f3b2fa26944cd47 (patch)
treefa88301b3af900e9fc1c5b0c4e7921621b24398f /vl.c
parent048f6b4df7ca3be292f40f7f56fd4e48edcabbe9 (diff)
downloadqemu-4a38940da0c0376ed29252757f3b2fa26944cd47.tar.gz
qemu-4a38940da0c0376ed29252757f3b2fa26944cd47.tar.bz2
qemu-4a38940da0c0376ed29252757f3b2fa26944cd47.zip
using _exit in fork() (Kamo Hiroyasu)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1669 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 4f19dd0f0e..06d41c15c6 100644
--- 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) ||