Change vfork to fork, too many memory-clobbering actions present in child

This commit is contained in:
Andrey A. Chernov 1997-04-23 23:04:58 +00:00
parent 4bac83aa0c
commit 7c506958f1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25120
2 changed files with 4 additions and 4 deletions

View File

@ -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. */

View File

@ -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. */