diff options
author | Ariel O. Barria <olivares73@hotmail.com> | 2012-11-21 14:36:15 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-11-28 17:23:16 +0100 |
commit | 7ad76d160a1da40b0ae45f60aed80c09271af19d (patch) | |
tree | 3558bab61efcaef85123414c28a6a15d14691d3e /src/monitor/monitor.c | |
parent | 78bbe544ad363cbc07f9e9f64bcc9a21a442965a (diff) | |
download | sssd-7ad76d160a1da40b0ae45f60aed80c09271af19d.tar.gz sssd-7ad76d160a1da40b0ae45f60aed80c09271af19d.tar.xz sssd-7ad76d160a1da40b0ae45f60aed80c09271af19d.zip |
Monitor quit when not exists no process no stops
https://fedorahosted.org/sssd/ticket/1669
Diffstat (limited to 'src/monitor/monitor.c')
-rw-r--r-- | src/monitor/monitor.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c index afec0b95f..a6e085728 100644 --- a/src/monitor/monitor.c +++ b/src/monitor/monitor.c @@ -1396,7 +1396,9 @@ static void monitor_quit(struct mt_ctx *mt_ctx, int ret) if (pid == -1) { /* An error occurred while waiting */ error = errno; - if (error != EINTR) { + if (error == ECHILD) { + killed = true; + } else if (error != EINTR) { DEBUG(0, ("[%d][%s] while waiting for [%s]\n", error, strerror(error), svc->name)); /* Forcibly kill this child */ |