Module Name: src
Committed By: pooka
Date: Thu Jul 29 14:09:45 UTC 2010
Modified Files:
src/libexec/lfs_cleanerd: lfs_cleanerd.c
Log Message:
Do the semaphore trick only if the cleaner is run as a lib -- the
standard installation doesn't get linked against librt or libpthread.
To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/libexec/lfs_cleanerd/lfs_cleanerd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/libexec/lfs_cleanerd/lfs_cleanerd.c
diff -u src/libexec/lfs_cleanerd/lfs_cleanerd.c:1.24 src/libexec/lfs_cleanerd/lfs_cleanerd.c:1.25
--- src/libexec/lfs_cleanerd/lfs_cleanerd.c:1.24 Thu Jul 29 14:07:39 2010
+++ src/libexec/lfs_cleanerd/lfs_cleanerd.c Thu Jul 29 14:09:45 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_cleanerd.c,v 1.24 2010/07/29 14:07:39 pooka Exp $ */
+/* $NetBSD: lfs_cleanerd.c,v 1.25 2010/07/29 14:09:45 pooka Exp $ */
/*-
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -1539,8 +1539,10 @@
* Main cleaning loop.
*/
loopcount = 0;
+#ifdef LFS_CLEANER_AS_LIB
if (semaddr)
sem_post(semaddr);
+#endif
while (nfss > 0) {
int cleaned_one;
do {