We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0d934e commit 80075f3Copy full SHA for 80075f3
1 file changed
bubblewrap.c
@@ -2889,6 +2889,7 @@ main (int argc,
2889
int intermediate_pids_sockets[2] = {-1, -1};
2890
const char *exec_path = NULL;
2891
int i;
2892
+ struct sigaction sa = {};
2893
2894
/* Handle --version early on before we try to acquire/drop
2895
* any capabilities so it works in a build environment;
@@ -2898,6 +2899,12 @@ main (int argc,
2898
2899
if (argc == 2 && (strcmp (argv[1], "--version") == 0))
2900
print_version_and_exit ();
2901
2902
+ /* Reset SIGCHILD to SIG_DFL allowing signalfd working propertly
2903
+ * if the parent process had set SIGCHLD to SIG_IGN. */
2904
+ sigemptyset (&sa.sa_mask);
2905
+ sa.sa_handler = SIG_DFL;
2906
+ sigaction (SIGCHLD, &sa, NULL);
2907
+
2908
real_uid = getuid ();
2909
real_gid = getgid ();
2910
0 commit comments