johnbintz / guard-rails

No longer maintained. Latest version is at https://github.com/ranmocy/guard-rails
35 stars 53 forks source link

Forcibly close the process holding open the socket you want if it's open #1

Closed johnbintz closed 13 years ago

johnbintz commented 13 years ago

lsof -P | grep "*:#{port} " will do it on Mac OS X. Have a new guard option, :force_run, that tried to kill the associated PID if it's found.