diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index 023bc3873ae96f455436edf3e7cd23837e11a83a..502cd11ab17e52ae219d9b4df71882280fee0c82 100644 --- a/tools/perf/util/evlist.c +++ b/tools/perf/util/evlist.c @@ -424,7 +424,7 @@ void perf_evlist__add_pollfd(struct perf_evlist *evlist, int fd) { fcntl(fd, F_SETFL, O_NONBLOCK); evlist->pollfd[evlist->nr_fds].fd = fd; - evlist->pollfd[evlist->nr_fds].events = POLLIN; + evlist->pollfd[evlist->nr_fds].events = POLLIN | POLLERR | POLLHUP; evlist->nr_fds++; }