mirror of
https://github.com/jarun/nnn.git
synced 2025-03-14 10:44:05 +00:00
Merge README.md changes
This commit is contained in:
commit
43bfbb7db1
1 changed files with 3 additions and 0 deletions
3
nnn.c
3
nnn.c
|
@ -331,6 +331,9 @@ spawn(char *file, char *arg, char *dir, int flag)
|
|||
/* Ignore interruptions */
|
||||
while (waitpid(pid, &status, 0) == -1)
|
||||
DPRINTF_D(status);
|
||||
/* Exit if parent process exited */
|
||||
if (getppid() == 1)
|
||||
_exit(0);
|
||||
DPRINTF_D(pid);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue