]> Sergey Matveev's repositories - nnn.git/commit
Use _exit() to terminate children
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 1 Feb 2020 13:58:59 +0000 (19:28 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 1 Feb 2020 13:58:59 +0000 (19:28 +0530)
commitc0f423496ea7b0d149bb64324e6590049e97d561
treed6a642438f1a876ea5474862c5306aaf056e19e2
parent4401dbe092d6f70a8f3b4c407655c11658487bc6
Use _exit() to terminate children

The NNN_PIPE file gets deleted after spawning a child in NOWAIT mode. Steps:
- open `nnn` with option `-x`
- press `;o` (custom binding) to open fzopen plugin
- press `^J` to select a file; it will spawn plugin `.cbcp` in NOWAIT mode
- when the intermediate child quits, the NNN_PIPE of parent is also deleted
src/nnn.c