From: Bart Schaefer <schaefer@brasslantern.com>
To: Eric Freese <ericdfreese@gmail.com>, zsh-workers@zsh.org
Subject: Re: [PATCH] Remove zpty exit hook from forked processes
Date: Wed, 1 Feb 2017 16:56:13 -0800 [thread overview]
Message-ID: <170201165613.ZM2163@torch.brasslantern.com> (raw)
In-Reply-To: <20170201204114.53246-1-ericdfreese@gmail.com>
On Feb 1, 1:41pm, Eric Freese wrote:
}
} diff --git a/Src/Modules/zpty.c b/Src/Modules/zpty.c
If the only meaningful diff is this one ...
} + deletehookfunc("exit", ptyhook);
} clearjobtab(0);
... then there is no reason to move around all those static functions.
Just mark the one to be declared in the autogenerated header file.
diff --git a/Src/Modules/zpty.c b/Src/Modules/zpty.c
index 2c87be1..3c1bef5 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))
{
next prev parent reply other threads:[~2017-02-02 0:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-01 20:41 Eric Freese
2017-02-02 0:56 ` Bart Schaefer [this message]
2017-02-02 1:25 ` Eric Freese
2017-02-02 17:38 ` Eric Freese
2017-02-03 0:49 ` Bart Schaefer
-- strict thread matches above, loose matches on Subject: below --
2017-02-01 6:12 Eric Freese
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=170201165613.ZM2163@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=ericdfreese@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).