瀏覽代碼

Do not leak wfd

master
Arun Prakash Jana 5 年之前
父節點
當前提交
5f3faf613a
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: A75979F35C080412
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/nnn.c

+ 1
- 1
src/nnn.c 查看文件

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


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


||||||
x
 
000:0
Loading…
取消
儲存