diff options
author | Ryan Cragun <me@ryan.ec> | 2014-10-31 10:50:31 -0700 |
---|---|---|
committer | Ryan Cragun <me@ryan.ec> | 2014-10-31 10:50:31 -0700 |
commit | 1e250a93e8a4d7717f747b51bdbbf4a3d9aa3dde (patch) | |
tree | 07c7d6f0a60c2bc3bb7d2daad2556a4e6032b1ef | |
parent | 82b697cd7585b572b210464ef794a76d454639b5 (diff) | |
download | mixlib-shellout-1e250a93e8a4d7717f747b51bdbbf4a3d9aa3dde.tar.gz |
Rescue ArgumentError on Marshal.load of buffered child status
-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 b03e0e3..c752bd0 100644 --- a/lib/mixlib/shellout/unix.rb +++ b/lib/mixlib/shellout/unix.rb @@ -345,7 +345,7 @@ module Mixlib attempt_buffer_read e = Marshal.load(@process_status) raise(Exception === e ? e : "unknown failure: #{e.inspect}") - rescue EOFError # If we get an EOF error, then the exec was successful + rescue ArgumentError # If we get an ArgumentError error, then the exec was successful true ensure child_process_status.close |