Returns the terminal of the process. Not implemented on Windows, always returns NA_character_. On Unix it returns NA_character_ if the process has no terminal.

ps_terminal(p)

Arguments

p

Process handle.

Value

Character scalar.

Details

Works for zombie processes.

See also

Examples

p <- ps_handle() p
#> <ps::ps_handle> PID=17400, NAME=R, AT=2020-02-16 11:38:31
ps_terminal(p)
#> [1] NA