Skip to content

Commit 18da18f

Browse files
committed
merge revision(s) 14071:
Merged 14070 from trunk. * lib/xmlrpc/server.rb (XMLRPC::Server#server): Improve signal handling so pressing control-c in the controlling terminal or sending SIGTERM stops the XML-RPC server. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_5@16964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent b2c93b3 commit 18da18f

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
Sun Jun 8 04:54:36 2008 James Edward Gray II <jeg2@ruby-lang.org>
2+
3+
Merged 14070 from trunk.
4+
5+
* lib/xmlrpc/server.rb (XMLRPC::Server#server): Improve signal handling so
6+
pressing control-c in the controlling terminal or sending SIGTERM stops
7+
the XML-RPC server.
8+
19
Sun Jun 8 04:46:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
210

311
* parse.y (newline_node): set line from outermost node before removing

lib/xmlrpc/server.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -639,11 +639,11 @@ def initialize(port=8080, host="127.0.0.1", maxConnections=4, stdlog=$stdout, au
639639

640640
def serve
641641
if RUBY_PLATFORM =~ /mingw|mswin32/
642-
signal = 1
642+
signals = [1]
643643
else
644-
signal = "HUP"
644+
signals = %w[INT TERM HUP]
645645
end
646-
trap(signal) { @server.shutdown }
646+
signals.each { |signal| trap(signal) { @server.shutdown } }
647647

648648
@server.start
649649
end

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define RUBY_RELEASE_DATE "2008-06-08"
33
#define RUBY_VERSION_CODE 185
44
#define RUBY_RELEASE_CODE 20080608
5-
#define RUBY_PATCHLEVEL 153
5+
#define RUBY_PATCHLEVEL 154
66

77
#define RUBY_VERSION_MAJOR 1
88
#define RUBY_VERSION_MINOR 8

0 commit comments

Comments
 (0)