chiark / gitweb /
tree-wide: some work-arounds for gcc false positives regarding uninitialized variables
[elogind.git] / src / basic / process-util.c
index 5bf0a18..c9115f8 100644 (file)
@@ -558,7 +558,7 @@ int wait_for_terminate(pid_t pid, siginfo_t *status) {
                         if (errno == EINTR)
                                 continue;
 
-                        return -errno;
+                        return negative_errno();
                 }
 
                 return 0;