From caddeca1ac638137b26735fc8c63d08c83be6a90 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Wed, 1 Feb 2017 17:11:48 -0800 Subject: 40483 (cf. Eric Freese: 40482): Remove zpty exit hook from forked processes --- Src/Modules/zpty.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Src') diff --git a/Src/Modules/zpty.c b/Src/Modules/zpty.c index 2c87be16f..3c1bef58f 100644 --- a/Src/Modules/zpty.c +++ b/Src/Modules/zpty.c @@ -331,6 +331,7 @@ newptycmd(char *nam, char *pname, char **args, int echo, int nblock) /* This code copied from the clone module, except for getting * * the descriptor from get_pty() and duplicating it to 0/1/2. */ + deletehookfunc("exit", ptyhook); clearjobtab(0); ppid = getppid(); mypid = getpid(); @@ -852,6 +853,7 @@ bin_zpty(char *nam, char **args, Options ops, UNUSED(int func)) } } +/**/ static int ptyhook(UNUSED(Hookdef d), UNUSED(void *dummy)) { -- cgit 1.4.1