projects
/
qemu-gpiodev
/
libfuse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b3f3a8
)
lib/mount_bsd.c: get rid of all the hacks, we really need nothing just a forced unmount
author
Csaba Henk
<csaba.henk@creo.hu>
Sun, 3 Feb 2008 20:13:32 +0000
(20:13 +0000)
committer
Csaba Henk
<csaba.henk@creo.hu>
Sun, 3 Feb 2008 20:13:32 +0000
(20:13 +0000)
lib/mount_bsd.c
patch
|
blob
|
history
diff --git
a/lib/mount_bsd.c
b/lib/mount_bsd.c
index 2e8c96fc2c44881d38bebc5e334e82f0a455c8b7..c186ffcee4134120ff4eb7e639539f7fb890b0ab 100644
(file)
--- 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);