Sfoglia il codice sorgente

Do not leak wfd

master
Arun Prakash Jana 5 anni fa
parent
commit
5f3faf613a
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: A75979F35C080412
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      src/nnn.c

+ 1
- 1
src/nnn.c Vedi File

@@ -4305,7 +4305,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);
int wfd = open(g_pipepath, O_WRONLY | O_CLOEXEC);

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


Loading…
Annulla
Salva