mirror of https://github.com/containers/podman.git
Merge pull request #25245 from giuseppe/fix-hang-s390x
rootless: fix hang on s390x
This commit is contained in:
commit
2cbb5fead9
|
@ -658,7 +658,7 @@ create_pause_process (const char *pause_pid_file_path, char **argv)
|
||||||
if (pipe (p) < 0)
|
if (pipe (p) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
pid = fork ();
|
pid = syscall_clone (SIGCHLD, NULL);
|
||||||
if (pid < 0)
|
if (pid < 0)
|
||||||
{
|
{
|
||||||
close (p[0]);
|
close (p[0]);
|
||||||
|
@ -689,7 +689,7 @@ create_pause_process (const char *pause_pid_file_path, char **argv)
|
||||||
close (p[0]);
|
close (p[0]);
|
||||||
|
|
||||||
setsid ();
|
setsid ();
|
||||||
pid = fork ();
|
pid = syscall_clone (SIGCHLD, NULL);
|
||||||
if (pid < 0)
|
if (pid < 0)
|
||||||
_exit (EXIT_FAILURE);
|
_exit (EXIT_FAILURE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue