delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/04/24/04:21:00

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
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 AT yandex DOT ru
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
Date: Fri, 24 Apr 2020 11:10:42 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
X-Mailer: The Bat! (v6.8.8) Home
X-Priority: 3 (Normal)
Message-ID: <94758478.20200424111042@yandex.ru>
To: Kristian Ivarsson via Cygwin <sten DOT kristian DOT ivarsson AT gmail DOT com>,
cygwin AT cygwin DOT 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
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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

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...

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019