From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25172 invoked by alias); 28 Aug 2013 13:48:03 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17949 Received: (qmail 17452 invoked from network); 28 Aug 2013 13:47:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at samsung.com does not designate permitted sender hosts) X-AuditID: cbfec7f4-b7f0a6d000007b1b-de-521dff8a99b5 Date: Wed, 28 Aug 2013 14:47:52 +0100 From: Peter Stephenson To: zsh-users@zsh.org Subject: Re: Implicit killing of subprocesses Message-id: <20130828144752.7986a138@pwslap01u.europe.root.pri> In-reply-to: <521DFD56.3040904@necoro.eu> References: <521DF308.4040106@necoro.eu> <20130828142651.4c930ba4@pwslap01u.europe.root.pri> <521DFD56.3040904@necoro.eu> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupmluLIzCtJLcpLzFFi42I5/e/4Vd2u/7JBBo9ms1nsOLmS0YHRY9XB D0wBjFFcNimpOZllqUX6dglcGZ83vmAtuMhWcXfRBdYGxrWsXYycHBICJhJ/D01lgbDFJC7c W8/WxcjFISSwlFHi1L8DYEVADpPEv4uOIDaLgKrEpTlX2EFsNgFDiambZjOC2CICohLLV2wG iwsL6EpcPt8ENIiDg1fAXuL3ZiGQMKeApsSrX4eZIEbWStze9JAZxOYX0Je4+vcTE8QN9hIz r5wBG8krICjxY/I9sNuYBdQlJs1bxAxha0s8eXeBdQKjwCwkZbOQlM1CUraAkXkVo2hqaXJB cVJ6rqFecWJucWleul5yfu4mRkgAftnBuPiY1SFGAQ5GJR7eiN+yQUKsiWXFlbmHGCU4mJVE ePm3A4V4UxIrq1KL8uOLSnNSiw8xMnFwSjUwRtvqFRwMcY+PlrYP/FhTbeXxty7cIvA3/8Rq rqfnlA4s2dtavjqn4K/Xyq0vfJyN7jb9mcPC2yUvVZFl7XFwb+zrs0F1uwT0euae2X/jc1Wb XPOam7+sQg03nHz/zbHDrqf5QdfdS14CLItZxRfVmXn6fX6wbf5C39ryQINJu6Ptco1NFTWU WIozEg21mIuKEwFlADriHgIAAA== On Wed, 28 Aug 2013 15:38:30 +0200 Ren=C3=A9 Neumann wrote: > It's non-interactive (a script). >=20 > > Not sure what happens non-interactively, coproc is really there for use > > with job control. >=20 > Ah darn. Using coprocs in scripts comes in handy when you want sth like: I think you're OK, it's just you don't have job control (and all the paraphernalia of controlling terminals, sessions, and the stuff zsh-workers will know I don't really understand). In this case, the NOHUP option is irrelevant --- because you don't have job control (it's determined by the MONITOR option which is unset in non-interactive shells), the shell doesn't send SIGHUP to processes on exiting (without job control it doesn't have much idea of which processes would need it). So I think you get the effect you want. pws