> According to the PROC(5) manpage, field five of /proc/<pid>/stat should
> be the GID of the process with PID <pid>. Yet I find the following for
> (e.g.) Postfix's pickup process:
> 
> 5657 (pickup) S 1771 1771 1771 0 -1 4219136 170 0 0 0 0 0 0 0 20 0 1 0 
> 3513070 24834048 524 18446744073709551615 4194304 4446388 140727413994400 
> 140727413992112 139626969169172 0 0 16781312 8192 0 0 0 17 0 0 0 0 0 0 
> 6543544 6546778 24240128 140727414001539 140727414001560 140727414001560 
> 140727414001628 0
> 
> Here the fifth field is 1771. 1771 is the parent process ID, and is
> definitely not a valid GID on the computer (not in /etc/group). Am I
> going crazy, or is there something wrong in the kernel?
> 
> It does not seem possible to get a GID out of Busybox's ps. Is there
> another way to identify the GID of a running process?

Bah.

The man page means "The process-group ID of the process", not "The
process group-ID of the process". What I need is in /proc/<pid>/status.

Sorry for the noise.

-- 
Mike

:wq
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to