Alessandro Nardin commented on a discussion on cpukit/posix/src/aio_suspend.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/275#note_114332

 > +      &event_out
 > +    );  
 > +  }
 > +
 > +  /* CONTROL IF TIMEOUT*/
 > +  if (result == RTEMS_TIMEOUT) {
 > +    rtems_set_errno_and_return_minus_one( EAGAIN );
 > +  }
 > +
 > +  /* CONTROL IF AT LEAST ONE OPERATION */
 > +  for (int i = 0; i < nent; i++) {
 > +    if ( list[i]-> error_code == EINPROGRESS ) {
 > +      op_num --;
 > +    }
 > +  }
 > +  if ( op_num == 0 ) {

op_num cannot reach negative values, but I'll change the comparison to <= just 
to be extra cautious.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/275#note_114332
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to