X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/1f92ea9c4e93cfe5c41f3823c3c1c8189db4586f..4b9ccde74dc34e450ed96bcd3d044f78cf393d8d:/usr/src/libc/stdio/system.c diff --git a/usr/src/libc/stdio/system.c b/usr/src/libc/stdio/system.c index 1649353d81..bcb4379351 100644 --- a/usr/src/libc/stdio/system.c +++ b/usr/src/libc/stdio/system.c @@ -1,3 +1,4 @@ +/* @(#)system.c 4.1 (Berkeley) 12/21/80 */ #include system(s) @@ -6,7 +7,7 @@ char *s; int status, pid, w; register int (*istat)(), (*qstat)(); - if ((pid = fork()) == 0) { + if ((pid = vfork()) == 0) { execl("/bin/sh", "sh", "-c", s, 0); _exit(127); }