Browse Source

Remove blocking pipe open in child

master
Arun Prakash Jana 5 years ago
parent
commit
609561494f
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/nnn.c

+ 1
- 1
src/nnn.c View File

@@ -4316,7 +4316,7 @@ static bool run_selected_plugin(char **path, const char *file, char *runfile, ch
exitcurses(); exitcurses();


if (fork() == 0) { // In child if (fork() == 0) { // In child
int wfd = open(g_pipepath, O_WRONLY | O_NONBLOCK);
int wfd = open(g_pipepath, O_WRONLY);


if (wfd == -1) if (wfd == -1)
_exit(EXIT_FAILURE); _exit(EXIT_FAILURE);


Loading…
Cancel
Save