mirror of
https://github.com/jarun/nnn.git
synced 2025-04-01 19:16:42 +00:00
Exit if parent has exited (#16)
This commit is contained in:
parent
0fd6a392db
commit
92236abf31
1 changed files with 3 additions and 0 deletions
3
nnn.c
3
nnn.c
|
@ -1295,6 +1295,9 @@ begin:
|
|||
for (;;) {
|
||||
redraw(path);
|
||||
nochange:
|
||||
/* Exit if parent has exited */
|
||||
if (getppid() == 1)
|
||||
_exit(0);
|
||||
sel = nextsel(&run, &env);
|
||||
switch (sel) {
|
||||
case SEL_CDQUIT:
|
||||
|
|
Loading…
Add table
Reference in a new issue