Project

wait_pid

0.0
No commit activity in last 3 years
No release in over 3 years
the wait_pid command -- (ruby gem/binary for waiting on an arbitrary external pid, doze/linux supported)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
 Project Readme

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