소스 검색

Prevent open FIFO prom leaking to subprocess

This fix previews window staying open after nnn exits, because they
inherited open FIFO (in write mode) from parent nnn process, and never
close it.
master
Léo Villeveygoux 4 년 전
부모
커밋
5b34d0dbe7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      src/nnn.c

+ 1
- 1
src/nnn.c 파일 보기

@@ -4679,7 +4679,7 @@ static void populate(char *path, char *lastname)
static void notify_fifo()
{
if (fifofd == -1) {
fifofd = open(fifopath, O_WRONLY|O_NONBLOCK);
fifofd = open(fifopath, O_WRONLY|O_NONBLOCK|O_CLOEXEC);
if (fifofd == -1) {
if (errno != ENXIO)
/* Unexpected error, the FIFO file might have been removed */


불러오는 중...
취소
저장