Skip to content

Commit

Permalink
merge revision(s) 14071:
Browse files Browse the repository at this point in the history
	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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@16966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
shyouhei committed Jun 7, 2008
1 parent 538d392 commit fabd1e5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions ChangeLog
@@ -1,3 +1,11 @@
Sun Jun 8 04:55:26 2008 James Edward Gray II <jeg2@ruby-lang.org>

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.

Sun Jun 8 04:49:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>

* parse.y (newline_node): set line from outermost node before removing
Expand Down
6 changes: 3 additions & 3 deletions lib/xmlrpc/server.rb
Expand Up @@ -639,11 +639,11 @@ def initialize(port=8080, host="127.0.0.1", maxConnections=4, stdlog=$stdout, au

def serve
if RUBY_PLATFORM =~ /mingw|mswin32/
signal = 1
signals = [1]
else
signal = "HUP"
signals = %w[INT TERM HUP]
end
trap(signal) { @server.shutdown }
signals.each { |signal| trap(signal) { @server.shutdown } }

@server.start
end
Expand Down
2 changes: 1 addition & 1 deletion version.h
Expand Up @@ -2,7 +2,7 @@
#define RUBY_RELEASE_DATE "2008-06-08"
#define RUBY_VERSION_CODE 186
#define RUBY_RELEASE_CODE 20080608
#define RUBY_PATCHLEVEL 153
#define RUBY_PATCHLEVEL 154

#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8
Expand Down

0 comments on commit fabd1e5

Please sign in to comment.