diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-08-30 22:13:55 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-08-31 13:20:44 +0200 |
commit | 90990e28c9067b37cd5a8a90ed813a036fdd0bd0 (patch) | |
tree | 2334aa3446ba88ada21464257e72b029277e6ea6 /src | |
parent | 6d3eefd28e653c42bc4a6e0e58dfd9581b5c6e0a (diff) |
manager: remove ask-password fd from sd_event before closing it
Otherwise we might attempt to remove a non-existing fd from epoll.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/manager.c b/src/core/manager.c index ecea89c377..ede2a9910d 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -250,8 +250,8 @@ static int manager_dispatch_ask_password_fd(sd_event_source *source, static void manager_close_ask_password(Manager *m) { assert(m); - m->ask_password_inotify_fd = safe_close(m->ask_password_inotify_fd); m->ask_password_event_source = sd_event_source_unref(m->ask_password_event_source); + m->ask_password_inotify_fd = safe_close(m->ask_password_inotify_fd); m->have_ask_password = -EINVAL; } |