Introduction
Introduction Statistics Contact Development Disclaimer Help
handle closing fds - scroll - scrollbackbuffer program for st
git clone git://git.suckless.org/scroll
Log
Files
Refs
README
LICENSE
---
commit ea938bbb0415e745bc969e4bf4123a41723e740f
parent 3fc721d074811416f4024976c472ddc396c4f00d
Author: Jan Klemkow <[email protected]>
Date: Thu, 16 Apr 2020 23:17:30 +0200
handle closing fds
Diffstat:
M scroll.c | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/scroll.c b/scroll.c
@@ -480,6 +480,9 @@ main(int argc, char *argv[])
doredraw = false;
}
+ if (pfd[0].revents & POLLHUP || pfd[1].revents & POLLHUP)
+ break;
+
if (pfd[0].revents & POLLIN) {
ssize_t n = read(STDIN_FILENO, input, sizeof(input)-1);
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.