diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-05-09 14:40:52 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-05-09 14:55:21 +0530 |
commit | 151bbf000d3943fda0984135a8fecbe1183a1ebd (patch) | |
tree | dee9657a9e90b68c1b653edbb00e3e708d9087d4 /src | |
parent | d71379e5b61d970cb10bff3bbab8ced632043b84 (diff) | |
download | nnn-151bbf000d3943fda0984135a8fecbe1183a1ebd.tar.gz |
Increase pipe capacity
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); |