Debian Patches

Status for procps/2:4.0.4-9

Patch Description Author Forwarded Bugs Origin Last update
remove_strtod_tests Remove strtol tests On some architectures strol tests fail so we will skip them here Craig Small <csmall@debian.org> no debian 2024-10-15
ps_no_path_max no
disable_sched_test Disable ps sched test Disables the command to test the class of scheduler used in ps -o cls
For some reason, some Debian buildds fail on this test, however running
the command in the environment works, chalk it down to buildd oddness
and move along.
Craig Small <csmall@debian.org> no debian Debian 2024-10-15
uptime_test w test add FROM column The tests assume you haven't enabled the FROM column for w by default
Debian has this enabled by default
Craig Small <csmall@debian.org> no Debian 2024-10-15
makefile_w_link_systemd Makefile link w to libsystemd Craig Small <csmall@debian.org> yes 2024-10-15
pmap_test pmap tests Make the double value check have a looser regex
Skip pmap -X 1 if the file doesn't exist or is readable
Craig Small <csmall@dropbear.xyz> yes 2024-10-15
w_no_crash_short ps: Don't crash when using short option ps would crash with the -si or -sf options with systemd enabled.
The issue was the utmp wasn't filled in, the long option checked, the
short option did not.
.
Refactored the showinfo() function so instead of a branch with duplicate
prints for the items in both long and short we just branch on the items
for long output.
.
Also, made the function prototypes not dependendent on systemd enabled,
it was too messy that way and passing a char* NULL is not really going
to hurt anything
Craig Small <csmall@dropbear.xyz> yes upstream upstream, https://gitlab.com/procps-ng/procps/-/commit/79042e07fab9956135a21b1df7a69d1fbde7ef79 2025-04-13
w_cache_pids no
w_lib_count_user_sessions library,w: Only show and count user sessions Previously all sessions were used
library - procps_users counted sessions, not user sessions
w - showed all sessions, not user sessions
Craig Small <csmall@debian.org> no upstream, https://github.com/warmchang/procps/commit/734930e4766860b7e57f0a3ae7d7f908f5d56153 2025-04-13
vmstat8_siso_units vmstat.8: --unit changes si/so The --unit option said si/so were not changed.
The si/so description said they were.
The code, which is the final decision, says yes.
.
Update vmstat.8 to remove note that si/so not changed by --unit
Craig Small <csmall@debian.org> no debian upstream, https://gitlab.com/procps-ng/procps/-/commit/43ece4d2b0b8d5163ed118e76eff98c4988620db 2025-04-13
snice_help snice minor help screen fix Fixes a lonesome : in snice and skill no debian upstream, https://gitlab.com/procps-ng/procps/-/commit/afb4bc0146c33c3ea0b1d4a5bc842edc89d16403 2025-04-13
kill_negative_pids kill: Correctly parse negative pids kill would only correctly parse single digit negative pids because
it was using the optopt which is a single character, it now uses the
entire argument.
no upstream, https://gitlab.com/procps-ng/procps/-/commit/bfbaf43acade8c9de38737e87f4fc535991c8359 2025-04-13
w1_utmp_not_systemd w.1: mention utmp only for non systemd no debian upstream, https://gitlab.com/procps-ng/procps/-/commit/ce35d5a21f948408ab4698ca87e6b35c9fb4e942 2025-04-14
sysctl8_verboten_keys sysctl: Add verboten keys sysctl --all goes through the entire /proc/sys tree. For the majority
of parameters, reading the virtual file does nothing except print a
value.
.
However stat_refresh gives no output but flushes the vm data.
sysctl now has a verboten list which is a list of parameters that
should never be read with --all.
Craig Small <csmall@dropbear.xyz> no debian upstream, https://gitlab.com/procps-ng/procps/-/commit/276253f09245498008212303935675354856fd37 2025-04-14
watch1_chgexit_only_visible watch.8 --chgexit only on visible changes watch only exits on changes that are visible. This is a by-product
of how changes are detected which is in the ncurses idea of windows.
.
The limits of change detection is also why multicolours can't be
implemented, so a large re-work of how the output is stored and
displayed may fix both.
no debian upstream, https://gitlab.com/procps-ng/procps/-/commit/f2ea334fe3f618c3a08e64f5ef0b5ef8e62add1f 2025-04-14
w_idletime_tty w: print idletime if there is a tty w would try to stat() the tty device, which could be a problem
if there isn't one defined for a user.
Werner Fink <werner@suse.de> no upstream, https://gitlab.com/procps-ng/procps/-/commit/214a8421f8c81668c96ee489781a2b104f56e7e1 2025-04-14
w_array_bound_for_tty w: Set array bound for tty There is no guarantee that the length of whatever
sd_session_get_tty() returns is going to be under UT_LINESIZE
so copying until strlen of the source string could be an issue.
.
Instead copy at most UT_LINESIZE-1 characters and break if the
source string is at '\0'
Werner Fink <werner@suse.de> no upstream, https://gitlab.com/procps-ng/procps/-/commit/241cb88542c862a4e682fb64884b4c993c176554 2025-04-14
w_terminal_mode w: Add terminal mode Additional option for w -t/--terminal
.
Instead of running through either the systemd sessions or utmp
entries this option sorts the proccesses by TTY and finds ones
with a valid TTY entry.
.
getty processes are assumed to have a PPID or 0 or 1, to be
excluded from user processes.
.
Some noteable differences:
* session leaders for utmp systems will be one process below
which is the first process running on that device, this
changes the -p option
* Remote hosts are based on the session, not device. So
a user that ssh's and runs screen will have the ssh session
and the screens showing a remote IP. Almost no tools
differentiate between the session running screen and its
screens so its not real big difference.
* From/IP won't work for utmp systems
.
This patch includes the upstreams original commit and the enhancement.
.
Updated 2025-07-23 to avoid acting on the value of uninitialized sessions
variable.
Craig Small <csmall@dropbear.xyz> no upstream, https://gitlab.com/procps-ng/procps/-/commit/f53cc24d57085c87ebb1871b92c0069b72a60926 2025-07-23
w_process_tty w: Use process TTY as backup user TTY Sometimes we cannot directly find the TTY for a user session, so
this commit puts all the methods into a single function called
get_session_tty() which will (in order) use:
* systemd's sd_session_get_tty
* utmp->ut_line
then (and this is new):
* Get the session leader of the session, either via
sd_session_get_leader() or ut->ut_pid and scan the pids
stack for children and grand-children until we find something
with a TTY.
.
w now carries around the ttyname (pts/2) not the ttypath (/dev/pts/2)
which removed a lot of the ttyname+5 stuff.
.
The process cache is sorted by PIDS_TICS_BEGAN for all modes, not
just tty mode because we will miss {grand,}children if there has been
a pid wrap.
.
Bonus benefit is the "best" process is better now.
Craig Small <csmall@debian.org> no debian upstream, https://gitlab.com/procps-ng/procps/-/commit/41c12e27122319229633b515c8f99cf6b73ca8d8 2025-04-14
library_0_days_users library: days/users when value is 0 The check for using days/users was > 0 which meant you could
get results like 0 day or 0 user. The check is now for not 1
so w prints 0 days and 0 users.
no upstream, https://gitlab.com/procps-ng/procps/-/commit/91ff8d99592afd0906cc564b46bbd503a9d4175f 2025-04-14
library_lxc_leak library: Recover from meminfo seek() in LXC Running procps tools under LXC may fail with the message:
"Unable to create meminfo structure"
.
This is due to a lseek() failing with a ESPIPE error.
It doesn't appear to impact all LXC installations and it's
unclear why some are impacted and some not.
.
The fix is to check for that error and reopen the file
if required.
Paul Slootman <paul@debian.org> no debian upstream, https://gitlab.com/procps-ng/procps/-/commit/104b3ce3df67092eeb868ba5e019cb895ebdf32d 2025-04-14
sysctl_conf5_update sysctl.conf.8 Various updates Update sysctl.conf.8 so its the same as the current upstream.
Branden's content and style updates
Branden's TH style fixes
Craigs format updates and note about systemd-sysctl
G. Branden Robinson <g.branden.robinson@gmail.com> no debian upstream 2025-04-14
library_use_clock_gettime library: procps_uptime -> clock_gettime, in <pids> api Use clock_gettime instead of procps_uptime for boot time.
This will mean we can get the correct clock even if the system
is in a container or pidfs mounted with subset=pid
Jim Warner <james.warner@comcast.net> no debian upstream 2025-04-14
w_sessions_without_sd w: Get sessions even if !sd_booted()
Use sd_get_sessions() to determine whether systemd-style session recording is
in use rather than checking for sd_booted(), but only fall back to reading utmp
if !sd_booted(). This allows sessions to be listed that have been recorded by
elogind.
Andrew Bower <andrew@bower.uk> no debian 2025-07-27

All known versions for source package 'procps'

Links