summaryrefslogtreecommitdiffstats
path: root/term-utils/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'term-utils/script.c')
-rw-r--r--term-utils/script.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/term-utils/script.c b/term-utils/script.c
index d8def5b82..bf03b6297 100644
--- a/term-utils/script.c
+++ b/term-utils/script.c
@@ -390,8 +390,11 @@ static void do_io(struct script_control *ctl)
if (pfd[i].revents == 0)
continue;
- DBG(POLL, ul_debug(" active pfd[%zu].fd=%d", i, pfd[i].fd));
-
+ DBG(POLL, ul_debug(" active pfd[%zu].fd=%d %s %s %s",
+ i, pfd[i].fd,
+ pfd[i].revents & POLLIN ? "POOLIN" : "",
+ pfd[i].revents & POLLHUP ? "POLLHUP" : "",
+ pfd[i].revents & POLLERR ? "POLLERR" : ""));
switch (i) {
case POLLFD_STDIN:
case POLLFD_MASTER: