mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-28 11:57:28 +00:00
Change vfork to fork, too many memory-clobbering actions present in child
This commit is contained in:
parent
4bac83aa0c
commit
7c506958f1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25120
@ -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. */
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user