From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13503 invoked by alias); 4 Nov 2015 19:01:32 -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: 37063 Received: (qmail 10878 invoked from network); 4 Nov 2015 19:01:31 -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=V6DpOLbf5nYc4j4JLryOL5hPImJLNuGLui03753V25M=; b=z4VopVA9eLHnyQOEvvabgN9Ed+324c3iP3+0YGuXAo56x8GQ1n58GIuc8JgIg87l05 PyCEOBxf5Yon+OA3JheLQ1OHBlb8EyRRMf7nJVFp6GDDUYYD9KbIx4rRE9kYLy734YJy LVOZtNP5ifx7VbEcRpYqnOW/9Imw+cSXM6NCGu3EU+QdisZq/sB5qhYKwjYQtEbHWszD A9Xddpc+g7ljCXZpp5/s9eKdfbFF9qFYeA2qJ3A6rnkxhbU+SSktvACS7AZ8F3WFoFkq gJ7sWu2Crhsp4TrVs+8u6RueH4smg27xEn0n9RmZ089bot2og8Jijy1BdefYkSb+27gv GTag== 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=V6DpOLbf5nYc4j4JLryOL5hPImJLNuGLui03753V25M=; b=K9A6r4GuyzlCCub8F8NbbkoiIrjYsXHKuQVvBebjuqDIvaBCq2/9xEhtA2XTLM8V9i anQiwpdnrsnsPIr5cre/pVhJxIzcA1jopkRndhwjGvd919PvxV5v35z9sqftS+D1DVkH K1+uSSK6eRRNTbLRc8sqDaE+dHbdpdeSYXSdSSi4jxGCldjD7EpPGIqkOtuWtQzbxv1B pSYQQC9+SmH/a8R3XSz9NGCVWV+++Rm1kNrX4DQ8+sgv/N/IvC9yYsETL+2DZIoivAq8 IATtx1x0HF0QzFlTcc2ZbetMHRXrWDV423DHQWLl+L6UeeDBmLwWXZvM/b+ljcFOucn8 a04Q== X-Gm-Message-State: ALoCoQlT2CiPa9hQufdGVL/56Tf1LsuIYo18Xxvi1eecYgaGY/5QO+kcaTNw06z6VeaDGgwhfGxE X-Received: by 10.182.142.40 with SMTP id rt8mr2024169obb.12.1446663687922; Wed, 04 Nov 2015 11:01:27 -0800 (PST) From: Bart Schaefer Message-Id: <151104110125.ZM20496@torch.brasslantern.com> Date: Wed, 4 Nov 2015 11:01:25 -0800 In-Reply-To: <20151104142521.GA31943@zira.vinc17.org> Comments: In reply to Vincent Lefevre "Re: Possible bug in signal handling" (Nov 4, 3:25pm) References: <87wpu0g19r.fsf@secretsauce.net> <151103201631.ZM19473@torch.brasslantern.com> <87vb9ifkyz.fsf@secretsauce.net> <151103204634.ZM19567@torch.brasslantern.com> <20151104142521.GA31943@zira.vinc17.org> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers Subject: Re: Possible bug in signal handling MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Nov 4, 3:25pm, Vincent Lefevre wrote: } Subject: Re: Possible bug in signal handling } } I suppose you meant "if it does not have children...". Yes. } You're thinking about IUE (implemented by zsh, unless this has changed } in the last few years), while WCE (implemented by bash) is generally } regarded to be better: } } http://www.cons.org/cracauer/sigint.html What zsh does depends on context. The simple example in that web page (emacs ...; cp ...) behaves like WCE if emacs opens the terminal, but behaves like WUE if emacs runs in GUI mode. For a process at the end of a pipeline like Dima's original example, zsh does IUE. Interactive shells with shinstdin (e.g. not reading a script file) also do W?E. Most of the time a zsh script is going to perform IUE and an interactive shell WCE, because that's how we interpreted the "inherited from parent" signal handling was required to behave.