From 73bdb1648f3e5c54f2135c84c31a14fffed1f8ca Mon Sep 17 00:00:00 2001 From: Tobias Girstmair Date: Mon, 28 Dec 2020 16:15:08 +0100 Subject: [PATCH] fix polling standard input --- ircpipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircpipe.c b/ircpipe.c index a67f03f..4652864 100644 --- a/ircpipe.c +++ b/ircpipe.c @@ -154,7 +154,7 @@ int irc_poll(const int sockfd, const int infd, const int outfd) { struct pollfd fds[2]; fds[IRC].fd = sockfd; fds[IRC].events = POLLIN; - fds[CLI].fd = sockfd; + fds[CLI].fd = infd; fds[CLI].events = POLLIN; for (;;) { -- 2.39.3