From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7725 invoked by alias); 7 Jul 2018 13:03:39 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43146 Received: (qmail 15518 invoked by uid 1010); 7 Jul 2018 13:03:39 -0000 X-Qmail-Scanner-Diagnostics: from mail-oi0-f43.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.218.43):SA:0(-1.9/5.0):. Processed in 2.147631 secs); 07 Jul 2018 13:03:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Cau8X6pbKbWWzRRg0Y9uJHyjbpyUk9HaN8r6WXizgtI=; b=gF4DflIbVA87z6UMyedWwViSXeZaiadFBmID/FbClHBZ+ZhO5r6vEd7RQ4z64FGRTa //MVd9y10U6GW5p+SFfe3ioE5IxRQ1X1i+DixP3mX+gzwQhJK4fP8gPk6BSmcMsQI7RT rCB3rZE2a4D5T0bV0E7MBDroHI4kxtmrZa09WGyvJX2LnvD9l+tn4T8iIvJC65EEnqfp 2Yr8Mi1f1kcazyBF5GIsZOkxBridEdbF8NlHBiH+BhFuX99CQPztdTT813UQsw3c/QAi 2qlFduIec3Fr2g+PNf35ojiwOLIN3KBKB6EILXCAv71PGSEebtldQkiMHikhEBbz5F8A Dp+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Cau8X6pbKbWWzRRg0Y9uJHyjbpyUk9HaN8r6WXizgtI=; b=iOythsPCGcqDW4oBZ73p4fJ+3I5DLUClKh4xZQBwpvchbrYSR0xfDHCcow/aMPTxI8 wrB+v123b4afvdZiYXjdGqZF1D9zIp5w0j0ejWmx8s3+ZubjQEUXyJH6mbebcGQujUwV xzYpGb29WtEkQbU+g2C2d91MxQhsrtAgsWV9TRNPy2tKQ2WtV7ImW3Anjznxf1s7gz/A jdpwNWBi1x4TlwpoB7qk7lkwlqelPmuaVk/zLu1yGg+KzwbBfgKj+h1UI54In/Y2BWgN lpYrs3+1QbnY8HAO68wazTfw+DqbXHKEel3g7D8660qLGWDPrzkz4Vm7PSdY7/okPD4L tTAQ== X-Gm-Message-State: APt69E3Cci7szcqbFMzJQx1hj8qziZRJYgpDjsG6jL4vZVpkI9DM19jq 1svOZwakOnfXH9oT+JQK60t1RWEMCp7IVUTbqA4= X-Google-Smtp-Source: AAOMgpcUtPjGBt5X9a1PrN+ukllNEJWQy4PQ/XrY1mRSJTplTpF8eot+ra9trzbJpEuQkyr4bLp0MyswordmgWY79nk= X-Received: by 2002:aca:cf43:: with SMTP id f64-v6mr16319259oig.113.1530968614498; Sat, 07 Jul 2018 06:03:34 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20180705084448eucas1p244dbcec9f6d915655cd8bb035fb72f6e~_bI-T7ynp0198101981eucas1p2S@eucas1p2.samsung.com> References: <1530706152.948208.1429754600.66E3F94F@webmail.messagingengine.com> <20180705084448eucas1p244dbcec9f6d915655cd8bb035fb72f6e~_bI-T7ynp0198101981eucas1p2S@eucas1p2.samsung.com> From: Sebastian Gniazdowski Date: Sat, 7 Jul 2018 15:03:13 +0200 Message-ID: Subject: Re: [BUG] Ctrl-C stops working after process substitution To: Peter Stephenson Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" On 5 July 2018 at 10:44, Peter Stephenson wrote: > My first guess about this is that it's to do with propagation > of errors and interrupts back from the widget. > > The -F handling is in the loops beginning > > for (i = 0; i < lnwatch; i++) { > > in zle_main.c. At the end there's a check for errflag and if > it's set the error bit ERRFLAG_ERROR is removed and we ignore that > FD until the read function returns. There could be something > unhelpful in this area. In particular we don't do anything with > the interrupt bit ERRFLAG_INT or a hard error ERRFLAG_HARD. I'm trying to debug it now. I noted, that the handler (noop) isn't run. Tried to attach from within Zle: noop() { print "I'm ran" >> /tmp/reply; IFS='' read line; MYFD="$1"; zle -F "$1"; exec {MYFD}<&-; }; exec {MYFD}< <( sleep 2; echo a test ); attach() { zle -F -w $MYFD noop; }; zle -N attach; bindkey '^T' attach But still cannot see the `print' message in /tmp/reply. This is weird as this works from bigger script, maybe there's a mistake? -- Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin