Skip to content

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

Usage

ps_uids(p = ps_handle())

ps_gids(p = ps_handle())

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.

Examples

p <- ps_handle()
p
#> <ps::ps_handle> PID=6327, NAME=R, AT=2024-01-21 20:57:52.64
ps_uids(p)
#>      real effective     saved 
#>      1001      1001      1001 
ps_gids(p)
#>      real effective     saved 
#>       127       127       127