From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward105p.mail.yandex.net (forward105p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:108]) by sourceware.org (Postfix) with ESMTPS id 822C938930D0 for ; Fri, 24 Apr 2020 08:20:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 822C938930D0 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=anrdaemon@yandex.ru Received: from forward102q.mail.yandex.net (forward102q.mail.yandex.net [IPv6:2a02:6b8:c0e:1ba:0:640:516:4e7d]) by forward105p.mail.yandex.net (Yandex) with ESMTP id 430274D41AEB; Fri, 24 Apr 2020 11:20:01 +0300 (MSK) Received: from mxback6q.mail.yandex.net (mxback6q.mail.yandex.net [IPv6:2a02:6b8:c0e:42:0:640:9de5:975f]) by forward102q.mail.yandex.net (Yandex) with ESMTP id 411E77F20002; Fri, 24 Apr 2020 11:20:01 +0300 (MSK) Received: from vla3-3dd1bd6927b2.qloud-c.yandex.net (vla3-3dd1bd6927b2.qloud-c.yandex.net [2a02:6b8:c15:350f:0:640:3dd1:bd69]) by mxback6q.mail.yandex.net (mxback/Yandex) with ESMTP id PIKags1aF6-K1FCAIJg; Fri, 24 Apr 2020 11:20:01 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1587716401; bh=N5OZnAbPIK59pqaI/JFfTFHFYDrFc1TtuI/Du68vQe0=; h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date; b=jan6RxRT1jazp8pjZ9cL8+k64mAJm/zIPgAEdHhu5+5JqqqUJ/BeueY8PVxopNUnc slZ3u82aeBwsmvZiL3LkhGO8Q5BI/+sCm5GOE6iU3yzJXjGM3kTF8pnufoeEjsMeq1 UZZhm/l5IlSfqCzMyRTT1b4ahqftlLaUkyRLoPi8= Authentication-Results: mxback6q.mail.yandex.net; dkim=pass header.i=@yandex.ru Received: by vla3-3dd1bd6927b2.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id juTI7JCUyX-K0YC24ro; Fri, 24 Apr 2020 11:20:00 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Fri, 24 Apr 2020 08:10:42 -0000 Date: Fri, 24 Apr 2020 11:10:42 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home Reply-To: cygwin@cygwin.com X-Priority: 3 (Normal) Message-ID: <94758478.20200424111042@yandex.ru> To: Kristian Ivarsson via Cygwin , cygwin@cygwin.com Subject: Re: posix_spawnp creates ghost processes In-Reply-To: <008201d61a0a$328a5510$979eff30$@gmail.com> References: <008201d61a0a$328a5510$979eff30$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Apr 2020 08:20:06 -0000 Greetings, Kristian Ivarsson via Cygwin! > We're having a rather complex application and have noticed a rather weird > behaviour that I cannot find any information about > We're using posix_spawnp and sometimes it creates extra "ghost-process(es)" > non visible to cygwin (via e.g. process status (ps)) but visible to Windows > (Task Manager) Cygwin may spawn processes for housekeeping. F.e. if you "program &" in shell, an additional shell will be spawned to launch the "program" and notify the parent shell when it exits. > The function doesn't fail and it doesn't report any error, but sometimes > (hard to reproduce deterministically) it creates one, or more, extra > processes of the same binary > Have anyone noticed and/or have some information/ideas about this ? Are these processes correctly exit when all childs exit? -- With best regards, Andrey Repin Friday, April 24, 2020 11:08:35 Sorry for my terrible english...