Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Wait for process so zombies don't spawn

  • Loading branch information...
commit f7a632ec68327a0532687179c6f77006b67a957b 1 parent ca9447c
Geoffrey Grosenbach authored

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  lib/osxscreenshot.rb
1  lib/osxscreenshot.rb
@@ -114,6 +114,7 @@ def run_command(cmd, &block)
114 114 raise CommandFailed, "Command failed: #{cmd}"
115 115 rescue Timeout::Error => e
116 116 Process.kill "KILL", pid
  117 + Process.wait pid
117 118 return nil
118 119 end
119 120

0 comments on commit f7a632e

Please sign in to comment.
Something went wrong with that request. Please try again.