Вопрос

I want to get the user ID of a given process ID using C

How can I do it?

Any insight appreciated ;)

Это было полезно?

Решение

If you have the procfs file system, then the effective user ID of the files in /proc/<pid> are that of the user.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top