Permalink
Browse files

Wait for process so zombies don't spawn

  • Loading branch information...
1 parent ca9447c commit f7a632ec68327a0532687179c6f77006b67a957b @topfunky committed May 5, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/osxscreenshot.rb
View
@@ -114,6 +114,7 @@ def run_command(cmd, &block)
raise CommandFailed, "Command failed: #{cmd}"
rescue Timeout::Error => e
Process.kill "KILL", pid
+ Process.wait pid
return nil
end

0 comments on commit f7a632e

Please sign in to comment.