diff options
author | Leonardo Taccari <iamleot@gmail.com> | 2017-12-13 09:43:13 +0100 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2017-12-13 09:43:13 +0100 |
commit | 9707ca9b8fc386354a7966f4584a5f7fdbd41e9c (patch) | |
tree | fe2d1315a931a9953b0fed7308ddb567db08d7ae | |
parent | 8a9e3ea43e6fe93f132d7d5a1b141416b96ad76f (diff) |
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.
-rw-r--r-- | autoreload_nop.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |