Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jan 1998 04:40:21 -0800 (PST)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs
Subject:   Re: kern/5495: renice value -u username causes instant reboot
Message-ID:  <199801151240.EAA14300@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/5495; it has been noted by GNATS.

From: Bruce Evans <bde@zeta.org.au>
To: FreeBSD-gnats-submit@FreeBSD.ORG, john@acetylene.vapornet.net
Cc:  Subject: Re: kern/5495: renice value -u username causes instant reboot
Date: Thu, 15 Jan 1998 23:35:04 +1100

 >>Synopsis:       renice value -u username causes instant reboot
 
 Try this fix.
 
 Bruce
 
 diff -c2 kern_resource.c~ kern_resource.c
 *** kern_resource.c~	Wed Dec 17 20:17:40 1997
 --- kern_resource.c	Thu Jan 15 23:24:15 1998
 ***************
 *** 77,81 ****
   	register struct getpriority_args *uap;
   {
 ! 	register struct proc *p = 0;
   	register int low = PRIO_MAX + 1;
   
 --- 77,81 ----
   	register struct getpriority_args *uap;
   {
 ! 	register struct proc *p;
   	register int low = PRIO_MAX + 1;
   
 ***************
 *** 121,125 ****
   	if (low == PRIO_MAX + 1)
   		return (ESRCH);
 ! 	p->p_retval[0] = low;
   	return (0);
   }
 --- 121,125 ----
   	if (low == PRIO_MAX + 1)
   		return (ESRCH);
 ! 	curp->p_retval[0] = low;
   	return (0);
   }



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