Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-9] src



Module Name:    src
Committed By:   martin
Date:           Wed Aug  7 10:11:45 UTC 2024

Modified Files:
        src/lib/libc/compat-43 [netbsd-9]: killpg.c
        src/sys/kern [netbsd-9]: kern_descrip.c kern_ktrace.c kern_proc.c
            sys_sig.c tty.c
        src/tests/lib/libc/sys [netbsd-9]: t_kill.c

Log Message:
Pull up following revision(s) (requested by kre in ticket #1859):

        sys/kern/kern_proc.c: revision 1.276 (via patch)
        sys/kern/kern_ktrace.c: revision 1.185 (via patch)
        sys/kern/sys_sig.c: revision 1.58 (via patch)
        sys/kern/kern_descrip.c: revision 1.263 (via patch)
        lib/libc/compat-43/killpg.c: revision 1.10
        sys/kern/tty.c: revision 1.313 (via patch)
        tests/lib/libc/sys/t_kill.c: revision 1.2

PR kern/58425 --  Disallow INT_MIN as a (negative) pid arg.
Since -INT_MIN is undefined, and to point of negative pid args is
to negate them, and use the result as a pgrp id instead, we need
to avoid accidentally negating INT_MIN.

Since pid_t is just an integral type, of unspecified width, when
testing pid_t value test for <= INT_MIN (or > INT_MIN sometimes)
rather than == INT_MIN.   When testing int values, just == INT_MIN
is all that is needed, < INT_MIN cannot occur.

tests/lib/libc/sys/t_kill: Test kill(INT_MIN, ...) fails with ESRCH.
PR kern/58425


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.9.6.1 src/lib/libc/compat-43/killpg.c
cvs rdiff -u -r1.243 -r1.243.4.1 src/sys/kern/kern_descrip.c
cvs rdiff -u -r1.173 -r1.173.4.1 src/sys/kern/kern_ktrace.c
cvs rdiff -u -r1.233.2.1 -r1.233.2.2 src/sys/kern/kern_proc.c
cvs rdiff -u -r1.47.4.3 -r1.47.4.4 src/sys/kern/sys_sig.c
cvs rdiff -u -r1.281 -r1.281.4.1 src/sys/kern/tty.c
cvs rdiff -u -r1.1 -r1.1.44.1 src/tests/lib/libc/sys/t_kill.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index