]> err.no Git - util-linux/commitdiff
umount: use atexit() rather than (*at_die)()
authorKarel Zak <kzak@redhat.com>
Sat, 24 Nov 2007 16:55:57 +0000 (17:55 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 25 Oct 2007 19:50:59 +0000 (21:50 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
mount/umount.c

index 4327dd70deea66309e6fc8dcd38a91ac754ec1a2..18612543e04760ecd90d18cd4b8c5e3a599722fd 100644 (file)
@@ -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)