Skip to content

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.

Usage

ps_terminal(p = ps_handle())

Arguments

p

Process handle.

Value

Character scalar.

Details

Works for zombie processes.

Examples

p <- ps_handle()
p
#> <ps::ps_handle> PID=6327, NAME=R, AT=2024-01-21 20:57:52.64
ps_terminal(p)
#> [1] NA