fix: tpws exit on pm-suspend

This commit is contained in:
bolvan 2017-08-28 10:09:39 +03:00
parent 7227c136d8
commit a5ff626123
5 changed files with 1 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -323,6 +323,7 @@ int event_loop(int listen_fd) {
while (1) { while (1) {
if ((num_events = epoll_wait(efd, events, MAX_EPOLL_EVENTS, -1)) == -1) { if ((num_events = epoll_wait(efd, events, MAX_EPOLL_EVENTS, -1)) == -1) {
if (errno==EINTR) continue; // system call was interrupted
perror("epoll_wait"); perror("epoll_wait");
retval = -1; retval = -1;
break; break;