diff options
author | Ryan Cragun <me@ryan.ec> | 2014-10-31 10:50:31 -0700 |
---|---|---|
committer | Ryan Cragun <me@ryan.ec> | 2014-10-31 12:57:51 -0700 |
commit | ce6348d4e543cb5bb32e21963f8741e13f437914 (patch) | |
tree | 2f724a3f96b90d0123820718bbfe51e90b99039c /lib | |
parent | aff7ca38002d58d71f47b10c2fa29ed7dbdd3059 (diff) | |
download | mixlib-shellout-ce6348d4e543cb5bb32e21963f8741e13f437914.tar.gz |
Rescue ArgumentError on Marshal.load of buffered child status
Diffstat (limited to 'lib')
-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 3172f6e..e0b6d67 100644 --- a/lib/mixlib/shellout/unix.rb +++ b/lib/mixlib/shellout/unix.rb @@ -322,7 +322,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 |