| 1 |
--- util-linux-2.12q/mount/fstab.c.flock 2005-09-17 01:10:37.000000000 +0800 |
| 2 |
+++ util-linux-2.12q/mount/fstab.c 2005-09-17 01:16:51.000000000 +0800 |
| 3 |
@@ -417,6 +417,7 @@ |
| 4 |
unlock_mtab (void) { |
| 5 |
if (we_created_lockfile) { |
| 6 |
unlink (MOUNTED_LOCK); |
| 7 |
+ close(we_created_lock_file); |
| 8 |
we_created_lockfile = 0; |
| 9 |
} |
| 10 |
} |
| 11 |
@@ -528,6 +529,7 @@ |
| 12 |
} |
| 13 |
/* proceed anyway */ |
| 14 |
} |
| 15 |
+ we_created_lock_file = fd; |
| 16 |
} else { |
| 17 |
static int tries = 0; |
| 18 |
|
| 19 |
@@ -549,9 +551,8 @@ |
| 20 |
MOUNTED_LOCK); |
| 21 |
sleep(1); |
| 22 |
} |
| 23 |
+ close(fd); |
| 24 |
} |
| 25 |
- |
| 26 |
- close(fd); |
| 27 |
} |
| 28 |
} |
| 29 |
|