User ids and group ids of the process. Both return integer vectors with names: real, effective and saved.

ps_uids(p)

ps_gids(p)

Arguments

p

Process handle.

Value

Named integer vector of length 3, with names: real, effective and saved.

Details

Both work for zombie processes.

They are not implemented on Windows, they throw a not_implemented error.

See also

Examples

p <- ps_handle() p
#> <ps::ps_handle> PID=17400, NAME=R, AT=2020-02-16 11:38:31
ps_uids(p)
#> real effective saved #> 2000 2000 2000
ps_gids(p)
#> real effective saved #> 2000 2000 2000