diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-06-16 16:29:36 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-06-16 16:29:36 +0200 |
commit | bbe3eb1dc3aa6d5fdded81eedcecbac412aa4577 (patch) | |
tree | 9efea0f8563c0fe7334765405bcbd39b3f7c2f4e /rtkit-daemon.c | |
parent | 6e666573f4a855c3c603ff22964cdbc42c0d8794 (diff) |
don't try to close closed fds
Diffstat (limited to 'rtkit-daemon.c')
-rw-r--r-- | rtkit-daemon.c | 4 |
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; } |