Package rocon_utilities :: Module system
[frames] | no frames]

Module system

source code

Functions
 
which(program) source code
 
pid_exists(pid)
Check whether pid exists in the current process table.
source code
 
wait_pid(pid, timeout=None)
Wait for process with pid 'pid' to terminate and return its exit status code as an integer.
source code
Variables
  __package__ = 'rocon_utilities'
Function Details

wait_pid(pid, timeout=None)

source code 

Wait for process with pid 'pid' to terminate and return its exit status code as an integer.

If pid is not a children of os.getpid() (current process) just waits until the process disappears and return None.

If pid does not exist at all return None immediately.

Raise TimeoutExpiredError on timeout expired (if specified).