summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorperseant <perseant@NetBSD.org>2012-02-02 03:47:11 +0000
committerperseant <perseant@NetBSD.org>2012-02-02 03:47:11 +0000
commitc046086e01e19651997b78ba56845879085520cd (patch)
tree53545bdcc2a7835033cded566678f43d83195599 /libexec
parent5659f149d5e179d29b1d86777402f21a6bd5380a (diff)
Shut down the cleaner earlier if the filesystem is unmounted.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/lfs_cleanerd/lfs_cleanerd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libexec/lfs_cleanerd/lfs_cleanerd.c b/libexec/lfs_cleanerd/lfs_cleanerd.c
index 5dc233c9af3..b74446576f4 100644
--- a/libexec/lfs_cleanerd/lfs_cleanerd.c
+++ b/libexec/lfs_cleanerd/lfs_cleanerd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_cleanerd.c,v 1.28 2012/01/02 21:35:18 perseant Exp $ */
+/* $NetBSD: lfs_cleanerd.c,v 1.29 2012/02/02 03:47:11 perseant Exp $ */
/*-
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -1158,6 +1158,12 @@ clean_fs(struct clfs *fs, CLEANERINFO *cip)
fd_release_all(fs->clfs_devvp);
return r;
}
+ if (oerrno == ESHUTDOWN) {
+ syslog(LOG_NOTICE, "%s: filesystem unmounted",
+ fs->lfs_fsmnt);
+ fd_release_all(fs->clfs_devvp);
+ return r;
+ }
}
}