attempt to fix solaris/smartos events with emperor

This commit is contained in:
Roberto De Ioris
2014-08-16 16:24:39 +02:00
parent 9c18e0e12a
commit 9780e5fc5e
+2
View File
@@ -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());