summaryrefslogtreecommitdiffstats
path: root/rtkit-daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'rtkit-daemon.c')
-rw-r--r--rtkit-daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rtkit-daemon.c b/rtkit-daemon.c
index 33138e7..37aad5e 100644
--- a/rtkit-daemon.c
+++ b/rtkit-daemon.c
@@ -1531,12 +1531,12 @@ static void stop_canary(void) {
watchdog_thread_id = 0;
}
- if (canary_fd < 0) {
+ if (canary_fd >= 0) {
close(canary_fd);
canary_fd = -1;
}
- if (quit_fd < 0) {
+ if (quit_fd >= 0) {
close(quit_fd);
quit_fd = -1;
}