summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-06-16 16:29:36 +0200
committerLennart Poettering <lennart@poettering.net>2009-06-16 16:29:36 +0200
commitbbe3eb1dc3aa6d5fdded81eedcecbac412aa4577 (patch)
tree9efea0f8563c0fe7334765405bcbd39b3f7c2f4e
parent6e666573f4a855c3c603ff22964cdbc42c0d8794 (diff)
don't try to close closed fds
-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;
}