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

ruby-changes:36043

From: kazu <ko1@a...>
Date: Fri, 24 Oct 2014 20:44:13 +0900 (JST)
Subject: [ruby-changes:36043] kazu:r48124 (trunk): * signal.c (check_reserved_signal_): fix write count since r47991.

kazu	2014-10-24 20:44:01 +0900 (Fri, 24 Oct 2014)

  New Revision: 48124

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

  Log:
    * signal.c (check_reserved_signal_): fix write count since r47991.

  Modified files:
    trunk/ChangeLog
    trunk/signal.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 48123)
+++ ChangeLog	(revision 48124)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Oct 24 20:41:36 2014  Kazuhiro NISHIYAMA  <zn@m...>
+
+	* signal.c (check_reserved_signal_): fix write count since r47991.
+
 Thu Oct 23 21:42:54 2014  Nobuyoshi Nakada  <nobu@r...>
 
 	* hash.c (rb_hash_delete): now does not call the block given to
Index: signal.c
===================================================================
--- signal.c	(revision 48123)
+++ signal.c	(revision 48124)
@@ -888,8 +888,8 @@ check_reserved_signal_(const char *name, https://github.com/ruby/ruby/blob/trunk/signal.c#L888
 	iov[3].iov_len = sizeof(msg2);
 	err = writev(2, iov, 4);
 #else
-	err = write(2, name, strlen(name));
-	err = write(2, msg1, name_len);
+	err = write(2, name, name_len);
+	err = write(2, msg1, sizeof(msg1));
 	err = write(2, prev, strlen(prev));
 	err = write(2, msg2, sizeof(msg2));
 #endif

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

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