Skip to content

Commit

Permalink
return good value
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Nov 14, 2016
1 parent a88403a commit 7c8a502
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util/channel.c
Expand Up @@ -497,16 +497,16 @@ fr_channel_event_t fr_channel_service_kevent(int kq, struct kevent const *kev, f
rad_assert(kev->ident == FR_CHANNEL_SIGNAL_WORKER_SLEEPING);

/*
* "worker sleeping" signals are only allowed for signals
* from the worker to the master thread.
* "worker sleeping" signals are only allowed from the
* worker to the master thread.
*/
rad_assert(kq == ch->end[FROM_WORKER].kq);

/*
* Run-time sanity check.
*/
end = &ch->end[FROM_WORKER];
if (end->kq != kq) return -1;
if (end->kq != kq) return FR_CHANNEL_ERROR;

end = &ch->end[TO_WORKER];

Expand Down

0 comments on commit 7c8a502

Please sign in to comment.