Skip to content

Commit

Permalink
attempt to fix solaris/smartos events with emperor
Browse files Browse the repository at this point in the history
  • Loading branch information
unbit committed Aug 16, 2014
1 parent 9c18e0e commit 9780e5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/emperor.c
Original file line number Diff line number Diff line change
Expand Up @@ -1739,6 +1739,8 @@ void emperor_loop() {
if (ui_current) {
char byte;
ssize_t rlen = read(interesting_fd, &byte, 1);
// retry if needed
if (rlen < 0 && uwsgi_is_again()) continue;
if (rlen <= 0) {
// SAFE
event_queue_del_fd(uwsgi.emperor_queue, interesting_fd, event_queue_read());
Expand Down

0 comments on commit 9780e5f

Please sign in to comment.