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

ruby-changes:39249

From: nobu <ko1@a...>
Date: Wed, 22 Jul 2015 09:34:57 +0900 (JST)
Subject: [ruby-changes:39249] nobu:r51330 (trunk): thread.c: return the error

nobu	2015-07-22 09:34:47 +0900 (Wed, 22 Jul 2015)

  New Revision: 51330

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

  Log:
    thread.c: return the error
    
    * thread.c (rb_wait_for_single_fd): return the error when ppoll
      failed.  fix r51319.

  Modified files:
    trunk/thread.c
Index: thread.c
===================================================================
--- thread.c	(revision 51329)
+++ thread.c	(revision 51330)
@@ -3694,6 +3694,7 @@ rb_wait_for_single_fd(int fd, int events https://github.com/ruby/ruby/blob/trunk/thread.c#L3694
 
 	RUBY_VM_CHECK_INTS_BLOCKING(th);
     } while (result < 0 && retryable(errno = lerrno) && poll_update());
+    if (result < 0) return -1;
 
     if (fds.revents & POLLNVAL) {
 	errno = EBADF;

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

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