EPERM rather than ESRCH. (Bill Shanon)
SCCS-vsn: sys/kern/kern_sig.c 6.2
-/* kern_sig.c 6.1 83/08/20 */
+/* kern_sig.c 6.2 83/09/08 */
#include "../machine/reg.h"
#include "../machine/pte.h"
#include "../machine/reg.h"
#include "../machine/pte.h"
return (EINVAL);
if (who > 0 && !ispgrp) {
p = pfind(who);
return (EINVAL);
if (who > 0 && !ispgrp) {
p = pfind(who);
- if (p == 0 || u.u_uid && u.u_uid != p->p_uid)
+ if (u.u_uid && u.u_uid != p->p_uid)
+ return (EPERM);
if (signo)
psignal(p, signo);
return (0);
if (signo)
psignal(p, signo);
return (0);