Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] Ctrl-C stops working after process substitution
- X-seq: zsh-workers 43163
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [BUG] Ctrl-C stops working after process substitution
- Date: Wed, 11 Jul 2018 11:07:43 +0100
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180711100747euoutp0147ea767dc1def5015a094014c70b4270~ASJJ2ho3Q1139211392euoutp01f
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1531303667; bh=hx2Llscf9FbJaAkDV3Dzx6Iu0NUxlrRzdsZ98IcZDVQ=; h=Date:From:To:Subject:In-Reply-To:References:From; b=Vsvb859oyCCClFDlN1lsvhjZThE02akuOhHhK8UrM4ti1+H1tOn2ylnTR30Ffgp4P 63hE+2NGDUjVfGJCbYXAGqK8s87ks70igV619bKbW7wS/vhMLGBMrJzlSQGWQxTN+P R+R5K3JIxG2HJOhvHfSlRMQApqfr05VAJZmpxrZA=
- In-reply-to: <CAKc7PVAowxgKwk07=E5RBusJavbnn+f4_8yagmzLJwywVka2kg@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: SCSC
- References: <CAKc7PVAkph0UJGRojp3+H2VVYOHWsTCLQo9iONh0TnuvMwL_=Q@mail.gmail.com> <1530706152.948208.1429754600.66E3F94F@webmail.messagingengine.com> <CGME20180704170810epcas5p29840028fd34c40ae2a91008f8c25eb79@epcas5p2.samsung.com> <CAKc7PVB5fd-aqgFeuTTpBU9TYUkAfcVT1+PmCGmMFJEij2azVw@mail.gmail.com> <20180705084448eucas1p244dbcec9f6d915655cd8bb035fb72f6e~_bI-T7ynp0198101981eucas1p2S@eucas1p2.samsung.com> <CAKc7PVDk1SFj8QopEZLkEo997O3NwmUP6cXRHd_4_cakSbTmLw@mail.gmail.com> <CAKc7PVBPsVJYgWmqCo=wtHNmUfQzXsb7vZzbuRH4KXig7fMcDQ@mail.gmail.com> <20180710152136eucas1p2a805a445f3687ad8a8eef97fe4bd2566~ACx3zdmM93266432664eucas1p2R@eucas1p2.samsung.com> <CAKc7PVAusDSoe0JiHm1hB6e0iZUTo-iZnd2fBFUya=A5jTrAAQ@mail.gmail.com> <CAKc7PVAowxgKwk07=E5RBusJavbnn+f4_8yagmzLJwywVka2kg@mail.gmail.com>
On Wed, 11 Jul 2018 10:48:54 +0200
Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx> wrote:
> Ctrl-C works this way. The conclusion from the eliminations is that
> {MYFD}< construct is responsible for those Ctrl-C problems. Where in
> the source to look for it?
The wordcode is associated with WC_REDIR_VARID. For the functions that
actually set up the redirection to/from MYFD, look in exec.c and search
for references to "varid" --- in particular, in addfd() in the case
where the last argument varid is not NULL. All the relevant
calls are from the section commented as "Do io redirections" in
execcmd_exec().
If this is a "{MYFD}< <(stuff)", then the process is started from
getpipe() in the same file --- this is a special case compared with
other uses of <(...) because we don't need a file name, just an fd,
so don't need named pipes or /dev/stuff. This happens within
spawnpipes(), which is called immediately above the chunk that does the
FD management using the newly created fd.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author