From 9707ca9b8fc386354a7966f4584a5f7fdbd41e9c Mon Sep 17 00:00:00 2001 From: Leonardo Taccari Date: Wed, 13 Dec 2017 09:43:13 +0100 Subject: Fix autoreload-nop accidentally selecting on stdin When sxiv is built with AUTORELOAD=nop if something is feed via stdin it will start to infinitely call select() leading to a 100% CPU usage. Thanks to @sdx23 for helping in analyzing that problem! Fixes issue #297. --- autoreload_nop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autoreload_nop.c') diff --git a/autoreload_nop.c b/autoreload_nop.c index 75532cd..a0427af 100644 --- a/autoreload_nop.c +++ b/autoreload_nop.c @@ -20,7 +20,7 @@ void arl_init(arl_t *arl) { - (void) arl; + arl->fd = -1; } void arl_cleanup(arl_t *arl) -- cgit v1.2.3-54-g00ecf