Re: 5.0-Current build failing on libkvm

From: Maxim Konovalov <maxim_at_macomnet.ru>
Date: Tue, 1 Apr 2003 12:22:16 +0400 (MSD)
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
_at__at_ -181,10 +181,12 _at__at_
 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_at_macomnet.ru, maxim_at_FreeBSD.org
Received on Mon Mar 31 2003 - 22:22:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:02 UTC