ruby-changes:44207
From: nobu <ko1@a...>
Date: Wed, 28 Sep 2016 13:00:33 +0900 (JST)
Subject: [ruby-changes:44207] nobu:r56280 (trunk): Update Signal.signame doc [ci-skip]
nobu 2016-09-28 13:00:27 +0900 (Wed, 28 Sep 2016) New Revision: 56280 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56280 Log: Update Signal.signame doc [ci-skip] * signal.c (sig_signame): [DOC] Add documentation in the case of return nil. [Fix GH-1449] Modified files: trunk/ChangeLog trunk/signal.c Index: ChangeLog =================================================================== --- ChangeLog (revision 56279) +++ ChangeLog (revision 56280) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Sep 28 13:00:25 2016 ksss <co000ri@g...> + + * signal.c (sig_signame): [DOC] Add documentation in the case of + return nil. [Fix GH-1449] + Wed Sep 28 10:43:27 2016 URABE Shyouhei <shyouhei@r...> * .travis.yml: delete comments. They were outdated. Index: signal.c =================================================================== --- signal.c (revision 56279) +++ signal.c (revision 56280) @@ -238,9 +238,10 @@ signo2signm(int no) https://github.com/ruby/ruby/blob/trunk/signal.c#L238 /* * call-seq: - * Signal.signame(signo) -> string + * Signal.signame(signo) -> string or nil * - * convert signal number to signal name + * Convert signal number to signal name. + * Returns +nil+ if the signo is an invalid signal number. * * Signal.trap("INT") { |signo| puts Signal.signame(signo) } * Process.kill("INT", 0) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/