From nobody Mon Jun 8 19:05:31 2026 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gZ1hW53jkz6gYcZ for ; Mon, 08 Jun 2026 19:05:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gZ1hW4TYWz3Sld for ; Mon, 08 Jun 2026 19:05:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780945531; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ruearnp3on9ZjAEJSfFLHoQ+4dibfM16teTqNOFZ3+g=; b=juv20l/86zz6A64kUyMSB9hB3Q5rrGAqhDENFTtsOEzWxjpkEFSQd6VuOX0iRHOeSVIQ11 X5wSn2+6HOITdKD2pwZHl+T3EOS5YRMtxyE9IaO7eNuTQvtU68f1p+zzANxeeQPLM/6JeD XYcEDeverf8wTYYuQZ7N+p+/mI2OyCunK6+EDhBOwtJA6Fz1q2p9wNoM60wUcxbAM8zp2D oKHFYIkJamvgYQ4txIQmnZYHhfANyS9Vcg+ZouzKupGZuKDctAk5dqDnloByXVSKPBeFQs MuMr286DK1exUrJF/4mxqaDtd4qUejk1LAXZ8ImZcJh5LhspJqZBve5ilQ8ZuA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1780945531; a=rsa-sha256; cv=none; b=IwDY/vHa7r480AEBnpBoHjxNbdknJdnmbR+hY+qUs4ogvSWC2s93qYkUhxOVK4ztTO0eLG N64mYXTkHpG5q3oPh8vVcKSK/3RDMYC2mZGmhHwx2n26dKVclcjR+Q5HE+y/flzo8uBpZ5 xekMVaf7oImMZ0poi9AFqTIQX8Uzw5h8RQ7vFP9KdLBWy84c+VOtabB7VxFWQTL20J0jtM BCdBvTc5gnhoSBEPe01iXGqE3M/pH1iBq1aPUAD2vngb1RSHa52L10TGfW9JqJXEPAScv5 kqRGR9j5PXZzgAXtb4O8YJ3wvcP3RCbWq3OCmV7b3wXvocxOFbzhtlqh7t11aA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780945531; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ruearnp3on9ZjAEJSfFLHoQ+4dibfM16teTqNOFZ3+g=; b=q/LiYDLZeMxcYD+/pxJ9OSUJlncKVGn73AKR1PNDSEzjR1tSFYrSs8EIhnAKZ+eHeolYOF Bbyplgt+Ad6J/AtCy7uP9nHmNPIwBBsNn8TK4VHmXOOYnRM+RVnLbSVoYJ12gFuzGM9132 q9/joOkjhlR0iKfxCqoBUP+o9vQ7SLZrtZG1UcxEodp1weio4MLaEmdzgV/BA4LcwBy6P8 nVNQfIdDOkJagRgUa7g1Tk4KgwkO5SgpEx/6QPtUhqQK9t+Q673EzhC/A6IiU++zmvHS51 Rz9VzjV0fJDm4LvciEfMvr0AEiXBWUtJahuW/PnOtVxCoyK036PPO28OoTcFAw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4gZ1hW43nNz11Nm for ; Mon, 08 Jun 2026 19:05:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 658J5VZ2028288 for ; Mon, 8 Jun 2026 19:05:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 658J5Vj2028287 for bugs@FreeBSD.org; Mon, 8 Jun 2026 19:05:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 295893] "procstat binary " returns 0 despite file not found after replacing binary Date: Mon, 08 Jun 2026 19:05:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ltning-freebsd@anduin.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D295893 --- Comment #3 from Eirik Oeverby --- (In reply to Ed Maste from comment #2) Thanks, I had not had time to see/comment on the review. I'm relying on the (old) behaviour in order to detect whether a running pro= cess matches the on-disk binary. With this change, can I still do so (i.e. if the binary is `-`)? Is there a better way to achieve what I am after, preferably something that gives a non-zero exit code if the two don't match? --=20 You are receiving this mail because: You are the assignee for the bug.=