From ab9dd9385c1c517477b0cc6362fdbff763b61b6c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Sat, 24 Nov 2007 17:55:57 +0100 Subject: [PATCH] umount: use atexit() rather than (*at_die)() Signed-off-by: Karel Zak --- mount/umount.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.39.5