Print the session id (PID of the session leader) instead of a pointer.
authorclaudio <claudio@openbsd.org>
Thu, 10 Oct 2024 10:24:14 +0000 (10:24 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 10 Oct 2024 10:24:14 +0000 (10:24 +0000)
commitc59e78d3361c3fe9182ce747c0d5774c7f8693c3
treed8a18471459c3a3d50a2a96cf8caa7d8ae822f53
parentf2270df8abda6ff4ad6a750f5b036a15b3ba6bad
Print the session id (PID of the session leader) instead of a pointer.

Pointers are only visible when run as superuser. Also in most cases
you want to know which process is the session leader and which process
groups belong together. So it is better to print the session id.
OK deraadt@ (long time ago)
bin/ps/keyword.c
bin/ps/ps.1