summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2007-11-24 17:55:57 +0100
committerKarel Zak2007-10-25 21:50:59 +0200
commitab9dd9385c1c517477b0cc6362fdbff763b61b6c (patch)
treebff35bef4275d7756cb2692d783e5bf9f62b50ef
parentmount: use atexit() rather than (*at_die)() (diff)
downloadkernel-qcow2-util-linux-ab9dd9385c1c517477b0cc6362fdbff763b61b6c.tar.gz
kernel-qcow2-util-linux-ab9dd9385c1c517477b0cc6362fdbff763b61b6c.tar.xz
kernel-qcow2-util-linux-ab9dd9385c1c517477b0cc6362fdbff763b61b6c.zip
umount: use atexit() rather than (*at_die)()
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--mount/umount.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mount/umount.c b/mount/umount.c
index 4327dd70d..18612543e 100644
--- a/mount/umount.c
+++ b/mount/umount.c
@@ -634,6 +634,8 @@ main (int argc, char *argv[]) {
argc -= optind;
argv += optind;
+ atexit(unlock_mtab);
+
if (all) {
/* nodev stuff: sysfs, usbfs, oprofilefs, ... */
if (types == NULL)