mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-17 22:31:12 +01:00
40483 (cf. Eric Freese: 40482): Remove zpty exit hook from forked processes
This commit is contained in:
parent
ad1b46578e
commit
caddeca1ac
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2017-02-01 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 40483 (cf. Eric Freese: 40482): Src/Modules/zpty.c: Remove zpty
|
||||
exit hook from forked processes
|
||||
|
||||
2017-02-01 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 40460: Src/params.c, Test/E01options.ztst: WARN_NESTED_VAR:
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue