浏览代码

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.
master
Leonardo Taccari Bert Münnich 6 年前
父节点
当前提交
9707ca9b8f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      autoreload_nop.c

+ 1
- 1
autoreload_nop.c 查看文件

@@ -20,7 +20,7 @@

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

void arl_cleanup(arl_t *arl)


正在加载...
取消
保存