- Obtain maximum PID from kern.pid_max_limit sysctl, not kern.pid_max, as kern.pid_max can be lowered while processes with higher PIDs still exist.
- Use kern.pid_max_limit and hw.ncpu to calculate column widths in top(1).
- pkill: Don't check if the PID is greater than pid_max. It doesn't really help much - kill(2) will fail on invalid PID anyway. We do want to check for MIN_PID, so we won't kill so important system processes.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 55511 Build 52400: arc lint + arc unit