]> Sergey Matveev's repositories - nnn.git/commitdiff
Remove blocking pipe open in child
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 10 May 2020 05:49:13 +0000 (11:19 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 10 May 2020 05:49:13 +0000 (11:19 +0530)
src/nnn.c

index 83741689c37ed4bc8e27532cf1915ec025fcf42c..081fac022b84461c73043b9e55dd7669f0099cbf 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4316,7 +4316,7 @@ static bool run_selected_plugin(char **path, const char *file, char *runfile, ch
        exitcurses();
 
        if (fork() == 0) { // In child
-               int wfd = open(g_pipepath, O_WRONLY | O_NONBLOCK);
+               int wfd = open(g_pipepath, O_WRONLY);
 
                if (wfd == -1)
                        _exit(EXIT_FAILURE);