diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-29 06:45:59 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-29 06:45:59 +0100 |
commit | f94ea366d38fed424200b748cb042ca44f8c8d50 (patch) | |
tree | 6fdd0032d6a667c967e6c82530e5dd83bdd2e18d /mount.c | |
parent | ef734fd6c2ec4e5602bbfe2a0d26dcf39c14d2bf (diff) |
monitor udev for device changes
Diffstat (limited to 'mount.c')
-rw-r--r-- | mount.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -208,6 +208,7 @@ static int mount_add_one(Manager *m, const char *what, const char *where, bool l if ((r = unit_set_description(u, where)) < 0) goto fail; + unit_add_to_load_queue(u); } else { delete = false; free(e); @@ -232,8 +233,6 @@ static int mount_add_one(Manager *m, const char *what, const char *where, bool l if ((r = mount_add_path_links(MOUNT(u))) < 0) goto fail; - unit_add_to_load_queue(u); - return 0; fail: @@ -420,7 +419,7 @@ void mount_fd_event(Manager *m, int events) { int r; assert(m); - assert(events == POLLERR); + assert(events == EPOLLERR); /* The manager calls this for every fd event happening on the * /proc/self/mountinfo file, which informs us about mounting |