f_status_t f_signal_wait(const sigset_t * const set, siginfo_t * const information) {
if (sigwaitinfo(set, information) == -1) {
- if (errno == EINTR) return F_status_set_error(F_interrupt);
+ if (errno == EINTR) return F_interrupt;
if (errno == EINVAL) return F_status_set_error(F_parameter);
return F_status_set_error(F_failure);
if (sigtimedwait(set, information, timeout) == -1) {
if (errno == EAGAIN) return F_time_out;
- if (errno == EINTR) return F_status_set_error(F_interrupt);
+ if (errno == EINTR) return F_interrupt;
if (errno == EINVAL) return F_status_set_error(F_parameter);
return F_status_set_error(F_failure);
*
* @return
* F_none if signal is found.
+ * F_interrupt if interrupted by a signal other than one specified in the signal set.
*
- * F_interrupt (with error bit) if interrupted by a signal other than one specified in the signal set.
* F_parameter (with error bit) if a parameter is invalid.
*
* F_failure (with error bit) for any other error.
*
* @return
* F_none if signal is found before time out.
+ * F_interrupt if interrupted by a signal other than one specified in the signal set.
* F_time_out if no signal is find by the time out.
*
- * F_interrupt (with error bit) if interrupted by a signal other than one specified in the signal set.
* F_parameter (with error bit) if a parameter is invalid.
*
* F_failure (with error bit) for any other error.