X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=mount.c;h=728f3a25e4d49dcc40e79a7346338d6af0801b21;hb=b9f880f4f4903f5dd8198fc1e2e920a9850ac86e;hp=a1c33442c0470bf7148ae658689ec27fb0551833;hpb=ef734fd6c2ec4e5602bbfe2a0d26dcf39c14d2bf;p=elogind.git diff --git a/mount.c b/mount.c index a1c33442c..728f3a25e 100644 --- a/mount.c +++ b/mount.c @@ -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