From 7c506958f1d824928f0dcfc55d31bd510f9db0ba Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Wed, 23 Apr 1997 23:04:58 +0000 Subject: [PATCH] Change vfork to fork, too many memory-clobbering actions present in child --- sbin/mount/mount.c | 4 ++-- sbin/mount_ifs/mount.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index c281cbce9e7c..b0d010562fca 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -352,9 +352,9 @@ mountfs(vfstype, spec, name, flags, options, mntopts) return (0); } - switch (pid = vfork()) { + switch (pid = fork()) { case -1: /* Error. */ - warn("vfork"); + warn("fork"); free(optbuf); return (1); case 0: /* Child. */ diff --git a/sbin/mount_ifs/mount.c b/sbin/mount_ifs/mount.c index c281cbce9e7c..b0d010562fca 100644 --- a/sbin/mount_ifs/mount.c +++ b/sbin/mount_ifs/mount.c @@ -352,9 +352,9 @@ mountfs(vfstype, spec, name, flags, options, mntopts) return (0); } - switch (pid = vfork()) { + switch (pid = fork()) { case -1: /* Error. */ - warn("vfork"); + warn("fork"); free(optbuf); return (1); case 0: /* Child. */