Krolyxon
Commit 9707ca9

Branches

Refs →

nsxiv9707ca9

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.
Author
Leonardo Taccari
Date
2017-12-13 09:43 +0100
Committer
Bert Münnich · 2017-12-13 09:43 +0100
Parent
8a9e3ea
Commit
9707ca9b8fc386354a7966f4584a5f7fdbd41e9c

+1 −1

1 file changed

  1. M autoreload_nop.c +1 −1
M autoreload_nop.c View
@@ -20,7 +20,7 @@
2020
2121 void arl_init(arl_t *arl)
2222 {
23− (void) arl;
23+ arl->fd = -1;
2424 }
2525
2626 void arl_cleanup(arl_t *arl)