From jdtsmith@gmail.com Thu Jun 18 11:03:56 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 18 Jun 2009 18:03:56 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5II3pod020446 for ; Thu, 18 Jun 2009 11:03:52 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHLxm-00045O-OB for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2009 14:03:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHLxh-00043R-Us for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2009 14:03:50 -0400 Received: from [199.232.76.173] (port=32955 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHLxh-00043H-NU for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2009 14:03:45 -0400 Received: from qw-out-1920.google.com ([74.125.92.147]:55297) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHLxh-0008Bm-0g for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2009 14:03:45 -0400 Received: by qw-out-1920.google.com with SMTP id 9so738965qwj.24 for ; Thu, 18 Jun 2009 11:03:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=L9NfpiN3/StUzNPH/eBRouRvqpGIQzfHAG6LGOQyEAc=; b=Hsv0BTIROHiKaTyFHBxlnBwvY1avDnHj8wOhEITsbWy8gI9zqoCzWaii4UpgoeCYzy uybQgKMaSXVg1OAWCSvPc399wiZXJFuQpEyy+FOxMNGtRvdf+AYXCvMH7okWSWm5bii2 ibiu0JwKbj6rxhwdCrj7kpqoJN5a2Ba5rapt4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=DDEMo28/FUoIe6pRuqwYZbkfHMpfKbV6x/Guqe6aOR5GB7u14OP4ylKS3CKbmvjymU oGAnP0Bb4X2pBVZDHdLJDpyktStxUMTHGAnWc2qiDwiYQLUkl5XpVF9ULXF9q6t9XbdF N2sE2supgApOCdCyAFnbAvYqgd0hIs/8elB5U= Received: by 10.224.28.76 with SMTP id l12mr1655231qac.19.1245348224015; Thu, 18 Jun 2009 11:03:44 -0700 (PDT) Received: from terrapin.mhr.utoledo.edu (terrapin.mhr.utoledo.edu [131.183.160.53]) by mx.google.com with ESMTPS id 4sm5542qwe.57.2009.06.18.11.03.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 18 Jun 2009 11:03:43 -0700 (PDT) Message-Id: <8D1E7569-9805-41CC-BB22-73FEDD276971@gmail.com> From: JD Smith To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Subject: BG processes killed by start-process Date: Thu, 18 Jun 2009 14:03:41 -0400 X-Mailer: Apple Mail (2.935.3) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Start-process seems to kill off child processes of which have been put into the background. Create a small shell script "bgtest": #!/bin/sh sleep 121 & exit 0 and now (start-process "BGTEST" nil "bgtest") Notice that the sleep process has been killed, rather than waited on. Is this the intended behavior? Any thoughts for preventing it (other than modifying the script, which I don't control)? Thanks. ---------------- In GNU Emacs 22.3.1 (i386-apple-darwin9.6.0, Motif Version 2.3.1) of 2009-04-29 on terrapin Windowing system distributor `The X.Org Foundation', version 11.0.10402000 configured using `configure '--prefix=/opt/local' '--without-carbon' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png' '-- with-x-toolkit=motif' 'CC=/usr/bin/gcc-4.0' 'CFLAGS=-O2' 'LDFLAGS=-L/ opt/local/lib' 'CPPFLAGS=-I/opt/local/include' 'CPP=/usr/bin/cpp-4.0'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Shell-script Minor modes in effect: TeX-source-specials-mode: t which-function-mode: t show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: identity Recent input: / h o m e / j d s m i t h / b i n / b g t e s t " ) M-: C-x C-f C-g C-x C-f b i n / b g t e C-x C-f C-a C-k b i n / t e d i s o w n SPC $ $ C-x C-s M-: % % C-x C-s M-: C-a C-k C-k C-x C-s C-x C-s M-: M-: C-e b g M-: M-: C-h f d C-g C-h f M-d M-d M-d C-d C-e M-x p r o c C-h a p r o c e s s M-x l i s t - p r M-x e m a c s - C-a C-k r e p o r Recent messages: # [3 times] Making completion list... Quit Type C-x 1 to remove help window. # Quit Loading apropos...done Type C-x 1 to remove help window. Making completion list... [2 times] Loading emacsbug...done -- J.D. Smith <==> http://tir.astro.utoledo.edu/jdsmith Ritter Observatory, MS 113 <==> 419-530-8528 University of Toledo <==> 419-530-5167 Toledo, OH 43606 <==> From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 17 02:20:13 2011 Received: (at 3608) by debbugs.gnu.org; 17 Sep 2011 06:20:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R4oG4-0004e4-Nd for submit@debbugs.gnu.org; Sat, 17 Sep 2011 02:20:13 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R4oFf-0004c1-Hu for 3608@debbugs.gnu.org; Sat, 17 Sep 2011 02:19:56 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R4oAu-0002lG-NH; Sat, 17 Sep 2011 08:14:52 +0200 From: Lars Magne Ingebrigtsen To: JD Smith Subject: Re: BG processes killed by start-process In-Reply-To: <8D1E7569-9805-41CC-BB22-73FEDD276971@gmail.com> (JD Smith's message of "Thu, 18 Jun 2009 14:03:41 -0400") Date: Sat, 17 Sep 2011 08:10:59 +0200 Message-ID: References: <8D1E7569-9805-41CC-BB22-73FEDD276971@gmail.com> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Ikonika's _Contact, Love, Want, Have_: "Red Marker Page (Good Ending)" MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1R4oAu-0002lG-NH X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1316844893.3784@op7GLIqjIYk1pti38GmGRA X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 3608 Cc: 3608@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) JD Smith writes: > Start-process seems to kill off child processes of which have been put > into the background. > > Create a small shell script "bgtest": > > #!/bin/sh > sleep 121 & > exit 0 > > and now > > (start-process "BGTEST" nil "bgtest") > > Notice that the sleep process has been killed, rather than waited on. > > Is this the intended behavior? Any thoughts for preventing it (other > than modifying the script, which I don't control)? I'm unable to reproduce this bug in Emacs 24: (setq a (start-process "BGTEST" nil "/tmp/bgtest")) => # (process-status a) => exit Do you still see this bug in a current Emacs? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 17 03:03:10 2011 Received: (at 3608-done) by debbugs.gnu.org; 17 Sep 2011 07:03:10 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R4ovd-0008EB-FW for submit@debbugs.gnu.org; Sat, 17 Sep 2011 03:03:10 -0400 Received: from mail-out.m-online.net ([212.18.0.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R4ovX-0008E1-Mf for 3608-done@debbugs.gnu.org; Sat, 17 Sep 2011 03:03:06 -0400 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 969F6188B592; Sat, 17 Sep 2011 08:58:14 +0200 (CEST) X-Auth-Info: r/w7kfa7BMZAsdHDoIceQiX58D4rLhxLAkxKNNhVmps= Received: from linux.local (ppp-88-217-112-131.dynamic.mnet-online.de [88.217.112.131]) by mail.mnet-online.de (Postfix) with ESMTPA id 5AFAC1C001B2; Sat, 17 Sep 2011 08:58:14 +0200 (CEST) Received: by linux.local (Postfix, from userid 501) id 7838F14E09F; Sat, 17 Sep 2011 08:58:18 +0200 (CEST) From: Andreas Schwab To: JD Smith Subject: Re: bug#3608: BG processes killed by start-process References: <8D1E7569-9805-41CC-BB22-73FEDD276971@gmail.com> X-Yow: I just had my entire INTESTINAL TRACT coated with TEFLON! Date: Sat, 17 Sep 2011 08:58:18 +0200 In-Reply-To: <8D1E7569-9805-41CC-BB22-73FEDD276971@gmail.com> (JD Smith's message of "Thu, 18 Jun 2009 14:03:41 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 3608-done Cc: 3608-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) JD Smith writes: > Start-process seems to kill off child processes of which have been put > into the background. > > Create a small shell script "bgtest": > > #!/bin/sh > sleep 121 & > exit 0 > > and now > > (start-process "BGTEST" nil "bgtest") > > Notice that the sleep process has been killed, rather than waited on. That's not a bug. The session created for the process is closed when the process exits, which causes the kernel to send SIGHUP to all remaining processes in the session. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From unknown Tue Jun 24 13:54:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 15 Oct 2011 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator