mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-13 06:45:24 +01:00
Use links for copies of patches.
This commit is contained in:
parent
9c016405ef
commit
c1ceabb9c4
2 changed files with 2 additions and 89 deletions
|
|
@ -1,30 +0,0 @@
|
|||
# SPDX-FileCopyrightText: 2023 Richard Masters <grick23@gmail.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
diff -r -u musl-1.1.24.orig/src/process/posix_spawn.c musl-1.1.24/src/process/posix_spawn.c
|
||||
--- src/process/posix_spawn.c 2019-10-13 21:58:27.000000000 +0000
|
||||
+++ src/process/posix_spawn.c 2023-02-28 14:08:18.636606282 +0000
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "syscall.h"
|
||||
#include "pthread_impl.h"
|
||||
#include "fdop.h"
|
||||
+#define BOOTSTRAP
|
||||
|
||||
struct args {
|
||||
int p[2];
|
||||
@@ -182,8 +183,16 @@
|
||||
args.envp = envp;
|
||||
pthread_sigmask(SIG_BLOCK, SIGALL_SET, &args.oldmask);
|
||||
|
||||
+#ifndef BOOTSTRAP
|
||||
pid = __clone(child, stack+sizeof stack,
|
||||
CLONE_VM|CLONE_VFORK|SIGCHLD, &args);
|
||||
+#else
|
||||
+ pid = fork();
|
||||
+ if (pid == 0) {
|
||||
+ _exit(child(&args));
|
||||
+ }
|
||||
+#endif
|
||||
+
|
||||
close(args.p[1]);
|
||||
|
||||
if (pid > 0) {
|
||||
1
sysa/musl-1.1.24/patches-pass3/avoid_sys_clone.patch
Symbolic link
1
sysa/musl-1.1.24/patches-pass3/avoid_sys_clone.patch
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../patches/avoid_sys_clone.patch
|
||||
Loading…
Add table
Add a link
Reference in a new issue