[Bug 295965] wait3(&status, WNOHANG, ...) clobbers status to -65536 when no child exits. (compat32 bug?)

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 10 Jun 2026 02:38:01 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295965

--- Comment #10 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=89fa97f0a71d4988891766c4e69eeb9687016b14

commit 89fa97f0a71d4988891766c4e69eeb9687016b14
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-06-09 21:33:56 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-06-10 02:37:25 +0000

    compat32 wait4/6(2): only copy out when there is a pid to report

    PR:     295965
    Reported and tested by: mandree
    Reviewed by:    markj
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D57513

 sys/compat/freebsd32/freebsd32_misc.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.