mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 06:12:01 +01: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