Explorar el Código

Exit if parent has exited (#16)

master
aaeilm Arun Prakash Jana hace 7 años
padre
commit
92236abf31
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. +3
    -0
      nnn.c

+ 3
- 0
nnn.c Ver fichero

@@ -1295,6 +1295,9 @@ begin:
for (;;) { for (;;) {
redraw(path); redraw(path);
nochange: nochange:
/* Exit if parent has exited */
if (getppid() == 1)
_exit(0);
sel = nextsel(&run, &env); sel = nextsel(&run, &env);
switch (sel) { switch (sel) {
case SEL_CDQUIT: case SEL_CDQUIT:


Cargando…
Cancelar
Guardar