This repository has been archived by the owner on May 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
the clone3 syscall breaks unpatched electron applications fixes FS#73713 git-svn-id: file:///srv/repos/svn-packages/svn@436918 eb2447ed-0c53-47e4-bac8-5bc4a241df78
- Loading branch information
Showing
2 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/sysdeps/unix/sysv/linux/clone-internal.c b/sysdeps/unix/sysv/linux/clone-internal.c | ||
index 1e7a8f6b35..4046c81180 100644 | ||
--- a/sysdeps/unix/sysv/linux/clone-internal.c | ||
+++ b/sysdeps/unix/sysv/linux/clone-internal.c | ||
@@ -48,17 +48,6 @@ __clone_internal (struct clone_args *cl_args, | ||
int (*func) (void *arg), void *arg) | ||
{ | ||
int ret; | ||
-#ifdef HAVE_CLONE3_WRAPPER | ||
- /* Try clone3 first. */ | ||
- int saved_errno = errno; | ||
- ret = __clone3 (cl_args, sizeof (*cl_args), func, arg); | ||
- if (ret != -1 || errno != ENOSYS) | ||
- return ret; | ||
- | ||
- /* NB: Restore errno since errno may be checked against non-zero | ||
- return value. */ | ||
- __set_errno (saved_errno); | ||
-#endif | ||
|
||
/* Map clone3 arguments to clone arguments. NB: No need to check | ||
invalid clone3 specific bits in flags nor exit_signal since this |