diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2000-05-19 09:42:53 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2000-05-19 09:42:53 +0000 |
commit | 6ad135868c5f5a2dc6506075ff6145a278424335 (patch) | |
tree | 070ce1a67be63a3b7f8aa052a378cc2f7d6ce902 /usr.bin/apply | |
parent | 9ece4dbfe998ebb032935a6ff57b2874b8f6be06 (diff) | |
download | src-test2-6ad135868c5f5a2dc6506075ff6145a278424335.tar.gz src-test2-6ad135868c5f5a2dc6506075ff6145a278424335.zip |
Notes
Diffstat (limited to 'usr.bin/apply')
-rw-r--r-- | usr.bin/apply/apply.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/apply/apply.c b/usr.bin/apply/apply.c index fe060a0de8e7..978062ff1972 100644 --- a/usr.bin/apply/apply.c +++ b/usr.bin/apply/apply.c @@ -210,13 +210,14 @@ system(command) return(1); omask = sigblock(sigmask(SIGCHLD)); - switch(pid = fork()) { + switch(pid = vfork()) { case -1: /* error */ - err(1, "fork"); + err(1, "vfork"); case 0: /* child */ (void)sigsetmask(omask); execl(shell, name, "-c", command, NULL); - err(1, "%s", shell); + warn("%s", shell); + _exit(1); } intsave = signal(SIGINT, SIG_IGN); quitsave = signal(SIGQUIT, SIG_IGN); |