diff options
author | kevlo <kevlo@FreeBSD.org> | 2008-09-04 10:44:33 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2008-09-04 10:44:33 +0000 |
commit | 9f7bbf786b8774496a85d188582a51fe6846d9f0 (patch) | |
tree | 282f9a414aa0c1d72807ad19d4e453764596cb2c /sys/kern/kern_proc.c | |
parent | a90af94f38b29c41a0dc8264d6fbe076359f19dd (diff) | |
download | FreeBSD-src-9f7bbf786b8774496a85d188582a51fe6846d9f0.zip FreeBSD-src-9f7bbf786b8774496a85d188582a51fe6846d9f0.tar.gz |
If the process id specified is invalid, the system call returns ESRCH
Diffstat (limited to 'sys/kern/kern_proc.c')
-rw-r--r-- | sys/kern/kern_proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index 25820ea..55f7e18 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -988,10 +988,10 @@ sysctl_out_proc(struct proc *p, struct sysctl_req *req, int flags) np = pfind(pid); } if (np == NULL) - return EAGAIN; + return (ESRCH); if (np != p) { PROC_UNLOCK(np); - return EAGAIN; + return (ESRCH); } PROC_UNLOCK(np); return (0); |