Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/lfs_cleanerd Do the semaphore trick only if the clea...



details:   https://anonhg.NetBSD.org/src/rev/97f145359656
branches:  trunk
changeset: 756707:97f145359656
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Jul 29 14:09:45 2010 +0000

description:
Do the semaphore trick only if the cleaner is run as a lib -- the
standard installation doesn't get linked against librt or libpthread.

diffstat:

 libexec/lfs_cleanerd/lfs_cleanerd.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 263daea14e98 -r 97f145359656 libexec/lfs_cleanerd/lfs_cleanerd.c
--- a/libexec/lfs_cleanerd/lfs_cleanerd.c       Thu Jul 29 14:07:39 2010 +0000
+++ b/libexec/lfs_cleanerd/lfs_cleanerd.c       Thu Jul 29 14:09:45 2010 +0000
@@ -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 {



Home | Main Index | Thread Index | Old Index