diff options
Diffstat (limited to 'sample/soap/calc/server2.rb')
-rw-r--r-- | sample/soap/calc/server2.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sample/soap/calc/server2.rb b/sample/soap/calc/server2.rb index 735721de64..bb0f643d77 100644 --- a/sample/soap/calc/server2.rb +++ b/sample/soap/calc/server2.rb @@ -16,5 +16,9 @@ class CalcServer2 < SOAP::RPC::StandaloneServer end if $0 == __FILE__ - status = CalcServer2.new('CalcServer', 'http://tempuri.org/calcService', '0.0.0.0', 7000).start + server = CalcServer2.new('CalcServer', 'http://tempuri.org/calcService', '0.0.0.0', 7000) + trap(:INT) do + server.shutdown + end + status = server.start end |