From: Karel Zak Date: Sat, 24 Nov 2007 16:55:57 +0000 (+0100) Subject: umount: use atexit() rather than (*at_die)() X-Git-Tag: v2.14-rc1~210 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ab9dd9385c1c517477b0cc6362fdbff763b61b6c;p=thirdparty%2Futil-linux.git umount: use atexit() rather than (*at_die)() Signed-off-by: Karel Zak --- diff --git a/mount/umount.c b/mount/umount.c index 4327dd70de..18612543e0 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)