19 lines
465 B
Diff
19 lines
465 B
Diff
# SPDX-FileCopyrightText: 2023 Richard Masters <grick23@gmail.com>
|
|
# SPDX-License-Identifier: MIT
|
|
--- src/process/posix_spawn.c 2022-04-07 17:12:40.000000000 +0000
|
|
+++ src/process/posix_spawn.c 2023-04-07 12:01:57.217126467 +0000
|
|
@@ -190,8 +190,11 @@
|
|
goto fail;
|
|
}
|
|
|
|
- pid = __clone(child, stack+sizeof stack,
|
|
- CLONE_VM|CLONE_VFORK|SIGCHLD, &args);
|
|
+ pid = fork();
|
|
+ if (pid == 0) {
|
|
+ _exit(child(&args));
|
|
+ }
|
|
+
|
|
close(args.p[1]);
|
|
UNLOCK(__abort_lock);
|
|
|