Handle Errno::EINTR gracefully
git-svn-id: file:///home/svn/framework3/trunk@7796 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
d2694ce5b9
commit
75c90b8ef9
|
@ -92,7 +92,7 @@ def run
|
|||
nmod.run_host(targ)
|
||||
rescue ::Interrupt,::NoMethodError, ::RuntimeError, ::ArgumentError, ::NameError
|
||||
raise $!
|
||||
rescue ::Rex::ConnectionError, ::Errno::ECONNRESET
|
||||
rescue ::Rex::ConnectionError, ::Errno::ECONNRESET, ::Errno::EINTR
|
||||
rescue ::Exception => e
|
||||
print_status("Error: #{targ}: #{e.class} #{e.message}")
|
||||
elog("Error running against host #{targ}: #{e.message}\n#{e.backtrace.join("\n")}")
|
||||
|
|
Loading…
Reference in New Issue