diff options
author | Csaba Henk <csaba.henk@creo.hu> | 2008-02-03 20:13:32 +0000 |
---|---|---|
committer | Csaba Henk <csaba.henk@creo.hu> | 2008-02-03 20:13:32 +0000 |
commit | 634fe87761add032fc5840edb6eac53ea4f019a5 (patch) | |
tree | c60f94b0b7a1852cab966eaf26093512c3430558 /lib/mount_bsd.c | |
parent | 7b3f3a8c2bc912a668586b350ceedb1aac2c8a00 (diff) |
lib/mount_bsd.c: get rid of all the hacks, we really need nothing just a forced unmount
Diffstat (limited to 'lib/mount_bsd.c')
-rw-r--r-- | lib/mount_bsd.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/mount_bsd.c b/lib/mount_bsd.c index 2e8c96f..c186ffc 100644 --- a/lib/mount_bsd.c +++ b/lib/mount_bsd.c @@ -235,17 +235,7 @@ static void do_unmount(char *dev, int fd) if (pid == -1) return; - if (pid) { - char c; - - /* - * This will get us banned by the kernel so if - * unmount(2) is waiting for us (ie., for an answer - * to DESTROY), then it will be interrupted and can - * go on. - */ - read(fd, &c, 1); - } else { + if (pid == 0) { close(fd); execvp(umount_cmd, (char **)argv); exit(1); |