]> 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>
Thu, 25 Apr 2019 18:56:22 +0000 (14:56 -0400)
committerThomas Abraham <tabraham@suse.com>
Thu, 25 Apr 2019 18:56:22 +0000 (14:56 -0400)
commit1697c192acc763682ee9883aa94fe871246403c0
tree9d6a974ed3d1c68f78350f5b74b64f1fff33ae54
parent5837240451df520ed77c889c76f6040391371e32
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 erros with ECHILD.
lib/spawn.c