Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Commit

Permalink
Fix autoreload-nop accidentally selecting on stdin
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
iamleot authored and xyb3rt committed Dec 13, 2017
1 parent 8a9e3ea commit 9707ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoreload_nop.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

void arl_init(arl_t *arl)
{
(void) arl;
arl->fd = -1;
}

void arl_cleanup(arl_t *arl)
Expand Down

0 comments on commit 9707ca9

Please sign in to comment.