From: Karel Zak Date: Sat, 24 Nov 2007 16:55:57 +0000 (+0100) Subject: umount: use atexit() rather than (*at_die)() X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab9dd9385c1c517477b0cc6362fdbff763b61b6c;p=util-linux umount: use atexit() rather than (*at_die)() Signed-off-by: Karel Zak --- diff --git a/mount/umount.c b/mount/umount.c index 4327dd70..18612543 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)