Skip to content
/ wait_pid Public

the wait_pid command -- (ruby gem/binary for waiting on any arbitrary external pid, works on doze/linux)

Notifications You must be signed in to change notification settings

rdp/wait_pid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wait_pid

This provides a ruby library and also command line executable

WaitPid.wait_pid pid_number # waits until that process exits

command line:

$ wait_pid pid_number # waits until that process exits

Currently it just polls 100 times/s to see if the process is still around.

Apparently in Linux there is no default way to wait for a pid to terminate that is not your child PID. This library works in windows or linux (since it just polls till they die). If more granularity is needed let me know [it is possible, at least in windows, or a higher polling capability could be made optional in linux].

Feedback welcome.

github.com/rdp/wait_pid

About

the wait_pid command -- (ruby gem/binary for waiting on any arbitrary external pid, works on doze/linux)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages