소스 검색

Increase pipe capacity

master
Arun Prakash Jana 4 년 전
부모
커밋
151bbf000d
No known key found for this signature in database 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);


||||||
x
 
000:0
불러오는 중...
취소
저장