* error.c: clarify reason for sleep in SignalException example

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
zzak 2013-02-25 19:52:11 +00:00
Родитель ffbd120efd
Коммит 47809f0934
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -1,4 +1,8 @@
Wed Feb 20 17:22:21 2013 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
Tue Feb 26 04:50:00 2013 Zachary Scott <zachary@zacharyscott.net>
* error.c: clarify reason for sleep in SignalException example
Tue Feb 26 03:47:00 2013 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* error.c: clarify a document of SignalException. Process.kill()
doesn't have any guarantee when signal will be delivered.

Просмотреть файл

@ -1349,7 +1349,7 @@ syserr_eqq(VALUE self, VALUE exc)
*
* begin
* Process.kill('HUP',Process.pid)
* sleep
* sleep # wait for receiver to handle signal sent by Process.kill
* rescue SignalException => e
* puts "received Exception #{e}"
* end