зеркало из https://github.com/github/ruby.git
* lib/un.rb (httpd): SIGQUIT and SIGHUP are not guaranteed to exist.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
81f1c62e3e
Коммит
073ac4ff5a
|
@ -1,3 +1,7 @@
|
|||
Tue Aug 10 11:26:33 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* lib/un.rb (httpd): SIGQUIT and SIGHUP are not guaranteed to exist.
|
||||
|
||||
Tue Aug 10 06:26:48 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/pathname/pathname.c (path_readlink): Pathname#readlink translated
|
||||
|
|
|
@ -317,9 +317,9 @@ def httpd
|
|||
s = WEBrick::HTTPServer.new(options)
|
||||
shut = proc {s.shutdown}
|
||||
Signal.trap("TERM", shut)
|
||||
Signal.trap("QUIT", shut)
|
||||
Signal.trap("QUIT", shut) if Signal.list.has_key?("QUIT")
|
||||
if STDIN.tty?
|
||||
Signal.trap("HUP", shut)
|
||||
Signal.trap("HUP", shut) if Signal.list.has_key?("HUP")
|
||||
Signal.trap("INT", shut)
|
||||
end
|
||||
s.start
|
||||
|
|
Загрузка…
Ссылка в новой задаче