diff options
| author | 2017-04-25 15:12:07 -0400 | |
|---|---|---|
| committer | 2017-04-26 00:42:07 +0530 | |
| commit | 92236abf31c77cdbf64f26505e669e463c4a9f20 (patch) | |
| tree | 35a4f13cc20476f0b0526cdd3bf647c299f01960 | |
| parent | 0fd6a392db55847bb5fa83436a10d6861693c91d (diff) | |
| download | nnn-92236abf31c77cdbf64f26505e669e463c4a9f20.tar.gz | |
Exit if parent has exited (#16)
| -rw-r--r-- | nnn.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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: |