Skip to content

Commit

Permalink
don't stacktrace on an interrupt
Browse files Browse the repository at this point in the history
git-svn-id: file:///home/svn/framework3/trunk@11455 4d416f70-5f16-0410-b530-b9f4589650da
  • Loading branch information
jlee-r7 committed Dec 30, 2010
1 parent bec8a95 commit acd5355
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion msfrpcd
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,8 @@ end
$framework.db.sink.restart if RUBY_PLATFORM !~ /cygwin/

# Run the plugin instance in the foreground.
$framework.plugins.load('xmlrpc', opts).run
begin
$framework.plugins.load('xmlrpc', opts).run
rescue ::Interrupt
$stderr.puts "[*] Shutting down"
end

0 comments on commit acd5355

Please sign in to comment.