diff options
author | Karel Zak | 2007-11-24 17:55:57 +0100 |
---|---|---|
committer | Karel Zak | 2007-10-25 21:50:59 +0200 |
commit | ab9dd9385c1c517477b0cc6362fdbff763b61b6c (patch) | |
tree | bff35bef4275d7756cb2692d783e5bf9f62b50ef | |
parent | mount: use atexit() rather than (*at_die)() (diff) | |
download | kernel-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.c | 2 |
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) |