Merge pull request #25245 from giuseppe/fix-hang-s390x

rootless: fix hang on s390x
This commit is contained in:
openshift-merge-bot[bot]
2025-02-06 15:20:59 +00:00
committed by GitHub

View File

@ -658,7 +658,7 @@ create_pause_process (const char *pause_pid_file_path, char **argv)
if (pipe (p) < 0)
return -1;
pid = fork ();
pid = syscall_clone (SIGCHLD, NULL);
if (pid < 0)
{
close (p[0]);
@ -689,7 +689,7 @@ create_pause_process (const char *pause_pid_file_path, char **argv)
close (p[0]);
setsid ();
pid = fork ();
pid = syscall_clone (SIGCHLD, NULL);
if (pid < 0)
_exit (EXIT_FAILURE);