stripe / subprocess

A port of Python's subprocess module to Ruby
MIT License
209 stars 17 forks source link

Add a timeout parameter to `communicate` #32

Closed andrew-stripe closed 6 years ago

andrew-stripe commented 6 years ago

This adds an optional timeout_s parameter to communicate that causes it to time out after some number of seconds. This is useful in handling processes that can hang under certain conditions. For example, you might want to timeout after a certain time and then call terminate to kill the process.

r? @russell-stripe cc @stripe/product-infra @zenazn

russelldavis commented 6 years ago

👍