[DRE-commits] [ruby-mixlib-shellout] 09/10: restore upstream source

Antonio Terceiro terceiro at moszumanska.debian.org
Sat Jun 13 16:30:55 UTC 2015


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch master
in repository ruby-mixlib-shellout.

commit 5148395b74357410aadf9e2f2b4f06a1db7cc999
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sat Jun 13 13:23:53 2015 -0300

    restore upstream source
    
    no idea how this god changed
---
 lib/mixlib/shellout/unix.rb | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/lib/mixlib/shellout/unix.rb b/lib/mixlib/shellout/unix.rb
index 449546c..dd22cbe 100644
--- a/lib/mixlib/shellout/unix.rb
+++ b/lib/mixlib/shellout/unix.rb
@@ -104,7 +104,6 @@ module Mixlib
         # CHEF-3390: Marshall.load on Ruby < 1.8.7p369 also has a GC bug related
         # to Marshall.load, so try disabling GC first.
         propagate_pre_exec_failure
-        get_child_pgid
 
         @status = nil
         @result = nil
@@ -149,18 +148,6 @@ module Mixlib
 
       private
 
-      def get_child_pgid
-        # The behavior of Process.getpgid (see also getpgid(2) ) when the
-        # argument is the pid of a zombie isn't well specified. On Linux it
-        # works, on OS X it returns ESRCH (which ruby turns into Errno::ESRCH).
-        #
-        # If the child dies very quickly, @child_pid may be a zombie, so handle
-        # ESRCH here.
-        @child_pgid = -Process.getpgid(@child_pid)
-      rescue Errno::ESRCH, Errno::EPERM
-        @child_pgid = nil
-      end
-
       def set_user
         if user
           Process.uid = uid

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-mixlib-shellout.git



More information about the Pkg-ruby-extras-commits mailing list