Handle Errno::EINTR gracefully

git-svn-id: file:///home/svn/framework3/trunk@7796 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-12-10 06:13:14 +00:00
parent d2694ce5b9
commit 75c90b8ef9
1 changed files with 1 additions and 1 deletions

View File

@ -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")}")