calmwm: replace INFTIM with -1

This commit is contained in:
Leah Neukirchen 2018-02-09 20:11:41 +01:00
parent 63ebc0cd8b
commit c6745ee21c

View File

@ -130,7 +130,7 @@ main(int argc, char **argv)
pfd[0].events = POLLIN;
while (cwm_status == CWM_RUNNING) {
xev_process();
if (poll(pfd, 1, INFTIM) == -1) {
if (poll(pfd, 1, -1) == -1) {
if (errno != EINTR)
warn("poll");
}