[前][次][番号順一覧][スレッド一覧]

ruby-changes:27450

From: zzak <ko1@a...>
Date: Tue, 26 Feb 2013 04:52:22 +0900 (JST)
Subject: [ruby-changes:27450] zzak:r39502 (trunk): * error.c: clarify reason for sleep in SignalException example

zzak	2013-02-26 04:52:11 +0900 (Tue, 26 Feb 2013)

  New Revision: 39502

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39502

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

  Modified files:
    trunk/ChangeLog
    trunk/error.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39501)
+++ ChangeLog	(revision 39502)
@@ -1,4 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
-Wed Feb 20 17:22:21 2013  KOSAKI Motohiro  <kosaki.motohiro@g...>
+Tue Feb 26 04:50:00 2013  Zachary Scott  <zachary@z...>
+
+	* error.c: clarify reason for sleep in SignalException example
+
+Tue Feb 26 03:47:00 2013  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* error.c: clarify a document of SignalException. Process.kill()
 	  doesn't have any guarantee when signal will be delivered.
Index: error.c
===================================================================
--- error.c	(revision 39501)
+++ error.c	(revision 39502)
@@ -1349,7 +1349,7 @@ syserr_eqq(VALUE self, VALUE exc) https://github.com/ruby/ruby/blob/trunk/error.c#L1349
  *
  *     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]