[ruby-cvs:72653] normal:r65553 (trunk): thread.c (rb_wait_for_single_fd): no point initializing pollfd.revents

normal at ruby-lang.org normal at ruby-lang.org
Tue Nov 6 07:56:57 JST 2018


normal	2018-11-06 07:56:57 +0900 (Tue, 06 Nov 2018)

  New Revision: 65553

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

  Log:
    thread.c (rb_wait_for_single_fd): no point initializing pollfd.revents
    
    poll(2) and ppoll(2) implementations need to check and write to
    .revents on the initial scan, anyways.  So any poll/ppoll call
    which returns a positive result can be expected to have an
    initialized .revents value.

  Modified files:
    trunk/thread.c


More information about the ruby-cvs mailing list