From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29329 invoked by alias); 4 Nov 2015 04:46: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: X-Seq: 37060 Received: (qmail 4523 invoked from network); 4 Nov 2015 04:46:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern_com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=k0uiCdwfG0nfwg3BCVe5z9C2+AV3XPVzRDLCgpzjVl8=; b=ZS6GtrHAbPzKbVUuZA9MZJhYeUH53A3/OsoSa3o4XynS4Ou+Vr8PZi7O3BALmmXRh5 Q31qyslJXW0c1nrdIiP/EbfpYAFwGw9ejZ0LGUg3BhAVHPfPvXtyyOxR/Tn4NdUtF28s NHHQHbmuZR//sdsIyyGGy5oUtnYQp2FJDUizWyp9rQgVjwlx1gUQyT7IiZ6Omxhp1kni nnz0E2bxAKjRmoBJ6aJO5pXkD0aLML+R1lipRxsmfxFTXMcyI/MPqVMdeMYeXfbjGxIX QV9XPDvdViInFDwM148mf4LJJu7opG/pjb4p3gh1IxFDSEfAm61sUy1ENVYNsam91LmR lv8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=k0uiCdwfG0nfwg3BCVe5z9C2+AV3XPVzRDLCgpzjVl8=; b=HmTxNTyBB+8PtmI3D49fz4GJxZ+0SSrGlZDEWncfWtBeCcfv+LaqAx1gJ3dqjWKC/z FUSKl7XF0sbGwacPwvegYJ5x8iWpbck37t+44tQQ/GHWweAdYV/zqp+Rv4lp4G8pjJm/ +wj+Y5Xt9E1QuvzE9wd1LQ5x+H3RGMDSzPsQOUUn9z9PmU8Vd4TDeOThZxeWN53fsnwT DMlqfVxXXOLS6vifG2jIh5EsCawd0cAW/mKjdXbsYXOsFimZP2SuBtXaOVl0DORn6WwH 0bH/9cVxcd31RcxWa/dZsVr1IJdh8DyBlAX5SWTnRx+KQEG9Ja0LXjRf+6fnanZXHqDR wuZg== X-Gm-Message-State: ALoCoQnhl68JFxNSi5nx/3HJh9/OLTOQob7Sf0DSDxu/72XaGyLQs0372+U56D+oTJYm0C1qbWFz X-Received: by 10.202.242.68 with SMTP id q65mr20326182oih.9.1446612397028; Tue, 03 Nov 2015 20:46:37 -0800 (PST) From: Bart Schaefer Message-Id: <151103204634.ZM19567@torch.brasslantern.com> Date: Tue, 3 Nov 2015 20:46:34 -0800 In-Reply-To: <87vb9ifkyz.fsf@secretsauce.net> Comments: In reply to Dima Kogan "Re: Possible bug in signal handling" (Nov 3, 8:27pm) References: <87wpu0g19r.fsf@secretsauce.net> <151103201631.ZM19473@torch.brasslantern.com> <87vb9ifkyz.fsf@secretsauce.net> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Dima Kogan , zsh-workers Subject: Re: Possible bug in signal handling MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Nov 3, 8:27pm, Dima Kogan wrote: } } Thanks for looking at this, Bart. I don't really understand this area in } detail, but should those changes be necessary? Is it not a bug in zsh } (and bash, I guess) that the perl process is orphaned? That's unclear. The default response to SIGINT is supposed to be that the process exits, not that it only exits if it has children that have not yet exited. If someone wants to pore over the POSIX spec and point out where it says that rule is countermanded for the shell, go for it. Otherwise I'd say it's up to the script to change the signal handling away from the default. You could also fix it by using "exec perl ..." which in zsh removes the "inner zsh" from the process tree entirely (in that particular example; more generally, "exec" the rightmost thing in the pipeline).