Comparison

net/server_epoll.lua @ 9508:2055b497b515

net.server_epoll: Special handling of signal interrupts
author Kim Alvefur <zash@zash.se>
date Fri, 12 Oct 2018 03:22:09 +0200
parent 9507:33d21f020b66
child 9573:57637247356d
comparison
equal deleted inserted replaced
9507:33d21f020b66 9508:2055b497b515
740 end 740 end
741 else 741 else
742 log("debug", "Removing unknown fd %d", fd); 742 log("debug", "Removing unknown fd %d", fd);
743 poll:del(fd); 743 poll:del(fd);
744 end 744 end
745 elseif r ~= "timeout" then 745 elseif r ~= "timeout" and r ~= "signal" then
746 log("debug", "epoll_wait error: %s[%d]", r, w); 746 log("debug", "epoll_wait error: %s[%d]", r, w);
747 end 747 end
748 until once or (quitting and next(fds) == nil); 748 until once or (quitting and next(fds) == nil);
749 return quitting; 749 return quitting;
750 end 750 end