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=10076, NAME=R, AT=2022-06-18 08:48:43
ps_uids(p)
#>      real effective     saved 
#>      1001      1001      1001 
ps_gids(p)
#>      real effective     saved 
#>       121       121       121