]> granicus.if.org Git - shadow/commit
lib/spawn.c run_command: don't loop forever if waitpid() is returning ECHILD
authorThomas Abraham <tabraham@suse.com>
Mon, 6 May 2019 18:26:14 +0000 (14:26 -0400)
committerThomas Abraham <tabraham@suse.com>
Mon, 6 May 2019 18:26:14 +0000 (14:26 -0400)
commit82fa6eccf9326f8002e7c969a0c06faffc3113f1
tree5fce6681d24fe2e2674cfca51942a30058f1f849
parent8d39357c840d3a529697144790f02307e5b8731b
lib/spawn.c run_command: don't loop forever if waitpid() is returning ECHILD

If SIGCHILD is being ignored, waitpid() will forever error with ECHILD and
this loop with never end, so don't loop if it errors with ECHILD.
lib/spawn.c