Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Apr 2003 12:22:16 +0400 (MSD)
From:      Maxim Konovalov <maxim@macomnet.ru>
To:        Scott Carmichael <freebsd@jobeus.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: 5.0-Current build failing on libkvm
Message-ID:  <20030401122034.F42286@news1.macomnet.ru>
In-Reply-To: <20030401010527.C59610@meriadoc.jobeus.net>
References:  <20030331234913.A64602-100000@mail.chesapeake.net> <20030401010527.C59610@meriadoc.jobeus.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 01:07-0700, Apr 1, 2003, Scott Carmichael wrote:

> Sigh... It seems that there's a lot of problems in -current right now.
> First there was a double-line comment problem with a .h file, seems fixed
> now, but then there's also an ununsed var in sys/kern/kern_sig.c (line
> 184), which I fixed and am trying to compile again... for the 3rd time.
>
> Someone wanna get that one in CVS?

"quick and dirty"

Index: sys/kern/kern_sig.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/kern_sig.c,v
retrieving revision 1.221
diff -u -r1.221 kern_sig.c
--- sys/kern/kern_sig.c	31 Mar 2003 23:30:41 -0000	1.221
+++ sys/kern/kern_sig.c	1 Apr 2003 08:15:12 -0000
@@ -181,10 +181,12 @@
 int
 cursig(struct thread *td)
 {
+#ifdef INVARIANTS
 	struct proc *p = td->td_proc;

 	PROC_LOCK_ASSERT(p, MA_OWNED);
 	mtx_assert(&sched_lock, MA_NOTOWNED);
+#endif
 	return (SIGPENDING(td) ? issignal(td) : 0);
 }


%%%

-- 
Maxim Konovalov, maxim@macomnet.ru, maxim@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030401122034.F42286>