浏览代码

Increase pipe capacity

master
Arun Prakash Jana 4 年前
父节点
当前提交
151bbf000d
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. +9
    -0
      src/nnn.c

+ 9
- 0
src/nnn.c 查看文件

@@ -4312,6 +4312,15 @@ static bool run_selected_plugin(char **path, const char *file, char *runfile, ch
if (fd == -1)
return FALSE;

#ifdef __linux__
DPRINTF_D(fcntl(fd, F_GETPIPE_SZ));
/* Increase the pipe buffer size to 1 MB */
if (fcntl(fd, F_SETPIPE_SZ, 1024*1024) == -1) {
DPRINTF_S(strerror(errno));
}
DPRINTF_D(fcntl(fd, F_GETPIPE_SZ));
#endif

/* Run plugin from command */
if (*file == '_')
run_cmd_as_plugin(*path, file, runfile);


正在加载...
取消
保存