From owner-freebsd-current Fri Oct 11 10:59:55 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA14596 for current-outgoing; Fri, 11 Oct 1996 10:59:55 -0700 (PDT) Received: from peedub.gj.org (newpc.muc.ditec.de [194.120.126.33]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id KAA14584 for ; Fri, 11 Oct 1996 10:59:34 -0700 (PDT) Received: from peedub.gj.org (localhost [127.0.0.1]) by peedub.gj.org (8.7.6/8.6.9) with ESMTP id TAA05925 for ; Fri, 11 Oct 1996 19:57:24 GMT Message-Id: <199610111957.TAA05925@peedub.gj.org> X-Mailer: exmh version 1.6.7 5/3/96 To: freebsd-current@freebsd.org Subject: invalid return value from sysctl_kern_proc ? From: Gary Jennejohn Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 11 Oct 1996 19:57:23 +0000 Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk here's a fragment of code fom sysctl_kern_proc (/sys/kern/kern_proc.c) if (oidp->oid_number == KERN_PROC_PID) { if (namelen != 1) return (EINVAL); p = pfind((pid_t)name[0]); if (!p) return (0); ^^^^^^ shouldn't that be ESRCH ? I ask because sysctl isn't returning an error when I try to get the proc struct for a non-existent process. Seems to me that it should. -------- Gary Jennejohn Home - Gary.Jennejohn@munich.netsurf.de Work - gjennejohn@frt.dec.com