summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-04-23 23:04:58 +0000
committerache <ache@FreeBSD.org>1997-04-23 23:04:58 +0000
commit9829398fac5ed9ff171e3fcf6fe6cd296904af52 (patch)
treef0073a3fd2557bcfa91897e6fd3e4b68d48870b8 /sbin
parenta5e825e238c466bcfacb8eced34f9dc0133f506f (diff)
downloadFreeBSD-src-9829398fac5ed9ff171e3fcf6fe6cd296904af52.zip
FreeBSD-src-9829398fac5ed9ff171e3fcf6fe6cd296904af52.tar.gz
Change vfork to fork, too many memory-clobbering actions present in child
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount/mount.c4
-rw-r--r--sbin/mount_ifs/mount.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c
index c281cbc..b0d0105 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 c281cbc..b0d0105 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. */
OpenPOWER on IntegriCloud