diff options
author | kaustubh-d <kaustubh@clogeny.com> | 2014-08-25 15:47:45 +0530 |
---|---|---|
committer | kaustubh-d <kaustubh@clogeny.com> | 2014-08-25 15:47:45 +0530 |
commit | 34c89dff6a872cc4d426f78aa2715af354ad1305 (patch) | |
tree | 8754cacf09b7e9158ac14e17c7bab2dd926dc6c9 | |
parent | 8d3f6bc696921b964b8b20c812e1da83714670ca (diff) | |
download | mixlib-shellout-34c89dff6a872cc4d426f78aa2715af354ad1305.tar.gz |
clean_parent_file_descriptors can be achieve with close_others flag to exec method, aix removed method was slow.
-rw-r--r-- | lib/mixlib/shellout/unix.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mixlib/shellout/unix.rb b/lib/mixlib/shellout/unix.rb index be2e66a..2456f49 100644 --- a/lib/mixlib/shellout/unix.rb +++ b/lib/mixlib/shellout/unix.rb @@ -318,7 +318,7 @@ module Mixlib set_cwd begin - command.kind_of?(Array) ? exec(*command) : exec(command) + command.kind_of?(Array) ? exec(*command, :close_others=>true) : exec(command, :close_others=>true) raise 'forty-two' # Should never get here rescue Exception => e |