diff options
author | Ron Yorston <rmy@pobox.com> | 2024-05-16 12:42:46 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-05-16 12:42:46 +0100 |
commit | 2a01fe0325524f7745f60a528d1f3076c098d89d (patch) | |
tree | 6fe1b772cc59cd258ca84f2ee29b58be6da150ab /init | |
parent | f1fc5ab9d6980b88eede93051736305408774122 (diff) | |
download | busybox-w32-2a01fe0325524f7745f60a528d1f3076c098d89d.tar.gz busybox-w32-2a01fe0325524f7745f60a528d1f3076c098d89d.tar.bz2 busybox-w32-2a01fe0325524f7745f60a528d1f3076c098d89d.zip |
win32: ensure PIDs are read early in procps_scan()
Recent changes to allow orphaned processes to report a parent PID
of 1 rely on the assumption that Process32First/Process32Next
return parents before children. This isn't guaranteed by the API.
Obtain all known PIDs on the first call to procps_scan() so that
dead parents can be detected reliably.
Costs 48 bytes.
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions