From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20022 invoked from network); 4 Oct 2020 01:58:39 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 4 Oct 2020 01:58:39 -0000 Received: (qmail 13922 invoked by uid 89); 4 Oct 2020 01:59:00 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 13915 invoked from network); 4 Oct 2020 01:58:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=heuristicsystems.com.au; s=hsa; t=1601776700; x=1602381501; bh=uONek7SXp2J7vTwotdtp1ao/97wL4kJRMbrR/pzOUfM=; h=Subject:To:From:Message-ID:Date; b=RH7AxKepK0LR6fBOXynLNL3q2/UdHCWLqtjHvUqW8OIHTNkzUOgYSCmEp+uy9Fb/z /raJxO2UdvY8gNxTcMmPFP40Qk2ISFYL6MgwuGDgnvj7M3+XZaNKEwgbuDdw49Bbwy 3XAojFPC5rNs/yOATdFTWtmoJRWa3+hc9+amR0z6qRe5V7BptQA9Z X-Authentication-Warning: b3.hs: Host noddy.hs [10.0.5.3] claimed to be [10.0.5.3] Subject: Re: s6-rc : Anomalies or normal behaviour To: supervision@list.skarnet.org References: <780655eb-a904-8b29-b559-80a7a0abc9f1@heuristicsystems.com.au> From: Dewayne Geraghty Message-ID: <157a72f6-c96f-b9fb-38b3-d0111add593f@heuristicsystems.com.au> Date: Sun, 4 Oct 2020 12:58:12 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:78.0) Gecko/20100101 Thunderbird/78.2.2 MIME-Version: 1.0 In-Reply-To: <780655eb-a904-8b29-b559-80a7a0abc9f1@heuristicsystems.com.au> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Apologies, my earlier email, item 2, pointed to emptyenv as the cause of zombie processes on FreeBSD 12.2S, actually it is due to background. # execlineb -Pc 'background { echo hello } pipeline { ps -axw } grep defunct' hello 30144 0 Z+ 0:00.00 while the following tests both foreground and emptyenv # execlineb -Pc 'emptyenv foreground { echo hello } pipeline { /bin/ps -axw } /usr/bin/grep defunct' hello # Software revision level (as available in the FreeBSD ports system) execline-2.6.0.1 s6-2.9.1.0 s6-rc-0.5.1.2 skalibs-2.9.2.1 Further detail: # execlineb -Pc 'emptyenv background { echo hello } pipeline { /bin/ps -axwwdo pid,ppid,stat,command } /usr/bin/grep -B1 "defunct"' hello 71212 70760 Ss | | `-- -csh (csh) 16885 71212 S+ | | `-- /usr/bin/grep -B1 defunct 17052 16885 Z+ | | |-- I've also placed a ktrace and kdump of execlineb -Pc 'ktrace -f /tmp/bgnd.kt /usr/local/bin/background { /bin/ps } echo a' here http://www.heuristicsystems.com/s6/