X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmountd.git;a=blobdiff_plain;f=mount.c;fp=mount.c;h=3994149bf12a4b4d3a46170f8009948b1b5ad63b;hp=ddcd5b303fb9766191adbd3147debce0ced71881;hb=97da4edeb9eb3b26c9843d3a5ab605e7bcf2573f;hpb=1b62489ceaf0270887d60db13b103c2b8bee33a1 diff --git a/mount.c b/mount.c index ddcd5b3..3994149 100644 --- a/mount.c +++ b/mount.c @@ -604,6 +604,7 @@ static int mount_dev_del(struct mount *mount) log_printf("device %s has disappeared ... unmounting %s\n", mount->dev, tmp); if (umount(tmp)) { err = -errno; + umount2(tmp, MNT_DETACH); } rmdir(tmp); mount_dump_uci_state();