summaryrefslogtreecommitdiff
path: root/src/tools/nscd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/nscd.c')
-rw-r--r--src/tools/nscd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/nscd.c b/src/tools/nscd.c
index 365383cb..b9f2ba88 100644
--- a/src/tools/nscd.c
+++ b/src/tools/nscd.c
@@ -70,7 +70,7 @@ int flush_nscd_cache(enum nscd_db flush_db)
errno = 0;
ret = waitpid(nscd_pid, &status, 0);
} while (ret == -1 && errno == EINTR);
- if (ret == 0) {
+ if (ret > 0) {
if (WIFEXITED(status)) {
ret = WEXITSTATUS(status);
if (ret > 0) {