OpenBSD cvs log

created 2023-09-10T08:08:49Z
begin 2023-09-04T00:00:00Z
end 2023-09-05T00:00:00Z
path src/sys
commits 2

date 2023-09-04T13:18:41Z
author claudio
files src/sys/kern/kern_exit.c log diff annotate
src/sys/kern/kern_fork.c log diff annotate
src/sys/kern/kern_sig.c log diff annotate
src/sys/sys/proc.h log diff annotate
message Protect ps_single, ps_singlecnt and ps_threadcnt by the process mutex.

The single thread API needs to lock the process to enter single thread
mode and does not need to stop the scheduler.

This code changes ps_singlecount from a count down to zero to ps_singlecnt
which counts up until equal to ps_threadcnt (in which case all threads
are properly asleep).

Tested by phessler@, OK mpi@ cheloha@

date 2023-09-04T23:00:36Z
author bluhm
files src/sys/netinet/tcp_var.h log diff annotate
message Fix netstat output of uses of current SYN cache left.

TCP syn cache variable scs_use is basically counting packet insertions
into syn cache. Prefer type long to exclude overflow on fast
machines. Due to counting downwards from a limit, it can become
negative. Copy it out as tcps_sc_uses_left via sysctl, and print
it as signed long long integer.

OK mvs@