Skip to content

Commit

Permalink
Fix non-catched EPOLLHUP
Browse files Browse the repository at this point in the history
  • Loading branch information
maxux committed Jun 25, 2020
1 parent 42bcefb commit d2dadea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shim-logs.c
Expand Up @@ -120,6 +120,11 @@ int main() {
stream_recall(target->stream);
}
}

if(ev->events & EPOLLERR || ev->events & EPOLLHUP) {
printf("[-] file descriptor closed\n");
return 1;
}
}
}

Expand Down

0 comments on commit d2dadea

Please sign in to comment.