[ruby-cvs:71642] normal:r64550 (trunk): thread.c: check interrupts explicitly in select/ppoll blocking regions

normal at ruby-lang.org normal at ruby-lang.org
Mon Aug 27 14:32:18 JST 2018


normal	2018-08-27 14:32:18 +0900 (Mon, 27 Aug 2018)

  New Revision: 64550

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

  Log:
    thread.c: check interrupts explicitly in select/ppoll blocking regions
    
    The logic around blocking_region_begin is confusing to me,
    but the goal of this patch is to ensure rb_sigwait_fd_get
    and rb_sigwait_fd_put are matched.
    
    In other words, we don't want a thread to hold sigwait_fd
    forever if an exception is raised while calling select()
    or ppoll().

  Modified files:
    trunk/thread.c


More information about the ruby-cvs mailing list