From dd93df35b5978342d6f9330fa3bb93914bbb7a51 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 23 Oct 2007 21:14:59 +0200 Subject: [PATCH] mount: use atexit() rather than (*at_die)() Signed-off-by: Karel Zak --- mount/fstab.c | 2 -- mount/mount.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mount/fstab.c b/mount/fstab.c index 4d045cea..a151df61 100644 --- a/mount/fstab.c +++ b/mount/fstab.c @@ -536,8 +536,6 @@ lock_mtab (void) { struct timeval maxtime; char linktargetfile[MOUNTLOCK_LINKTARGET_LTH]; - at_die = unlock_mtab; - if (!signals_have_been_setup) { int sig = 0; struct sigaction sa; diff --git a/mount/mount.c b/mount/mount.c index 42f87b03..ca1238f4 100644 --- a/mount/mount.c +++ b/mount/mount.c @@ -1978,6 +1978,8 @@ main(int argc, char *argv[]) { create_mtab (); } + atexit(unlock_mtab); + switch (argc+specseen) { case 0: /* mount -a */ -- 2.39.5