Terminating a Child Process.
These functions give access to the state of the child process and to its exit status (return code).
timeout parameter can take one of three values:
0which means no timeout
-1which means "wait until there is data to read"
a positive integer, which is the actual timeout in milliseconds
TIMEOUT_INFINITE denotes an "infinite" timeout
(that is, wait until response is available) when waiting for an
operation to complete.
TIMEOUT_IMMEDIATE denotes an "immediate" timeout
(in other words, no timeout) when waiting for an operation to
1 2 3 4 5 6 7 8 9
process_poll(handle, timeout = TIMEOUT_IMMEDIATE) process_return_code(handle) process_wait(handle, timeout = TIMEOUT_INFINITE) TIMEOUT_INFINITE TIMEOUT_IMMEDIATE
Process handle obtained from
Optional timeout in milliseconds.
An object of class
integer of length 1.
process_poll checks the state of the child process.
by giving access to the child process' exit status (return code). If
process_poll returns neither
process_return_code. It firsts for the process to exit and
then returns its exit code.
process_poll returns one of these values:
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.