nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 92236abf31c77cdbf64f26505e669e463c4a9f20
parent 0fd6a392db55847bb5fa83436a10d6861693c91d
Author: aaeilm <genericpb@gmail.com>
Date:   Tue, 25 Apr 2017 15:12:07 -0400

Exit if parent has exited (#16)


Diffstat:
Mnnn.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/nnn.c b/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: