summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Cragun <me@ryan.ec>2014-10-31 10:50:31 -0700
committerRyan Cragun <me@ryan.ec>2014-10-31 12:57:51 -0700
commitce6348d4e543cb5bb32e21963f8741e13f437914 (patch)
tree2f724a3f96b90d0123820718bbfe51e90b99039c
parentaff7ca38002d58d71f47b10c2fa29ed7dbdd3059 (diff)
downloadmixlib-shellout-ce6348d4e543cb5bb32e21963f8741e13f437914.tar.gz
Rescue ArgumentError on Marshal.load of buffered child status
-rw-r--r--lib/mixlib/shellout/unix.rb2
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