X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D9DDE38930C3
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1587713421;
	bh=oTFvpNZLGdnRy0nwMi+RRHq0iBSUtIw5qxJkcVhqB3U=;
	h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
	 List-Help:List-Subscribe:From:Reply-To:From;
	b=R+XTtNWdVdEmjoy2YEvqJ9c6L5RFanUlBEgzUr3KouSEUn/E87b1q/gQ+vfqWRl0T
	 TO5t5IwAW38GomvPomuJiurojIYLLhFMGr7Bk79oI3yOorz0GtZ/vOqJbGuAQtGnEy
	 a9dlJf1NFf57V8k6c2Auc79+tgFWhvqHcZEXj2qg=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B11BB38930C3
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version
 :content-transfer-encoding:thread-index:content-language;
 bh=cag/IicFOgk5e/8pmuEw0lg/NNjAhsymhkCMCI3EEbo=;
 b=brXVTFP5IHmXZgnTnCpoQlFl8VNqK1y2Zx9YJhkaoG3BNEQ9cB1XiT0oqlNJN0oBYi
 ae2m06iQqR0toGod4NLNWJP6HbR8rei/QTYNxaEFE+ICGfHNe/B89lwlwNpav+0o9stY
 fy/pqjetCxwDTMasUNNjB8wdlThNTdzTPnxuF9vkazrFCjMk4l5tzy0EsryJiU9jUcKH
 dNzCVZwbLX1iBZ0B17o7sQHDgK9pDU/YSs7PDhoVZZ0rgam9Gk0txiBlFHjMSGXvg/1I
 R9WhjvNZKOC27EuiROC7fHZzoOUufOQu13zuqqZ7If03lSB6gbg28HLTvoMXfL9qW3oJ
 PRLQ==
X-Gm-Message-State: AGi0PuavZC3SXMa2mB1NQVxipear+8gni/oWt80pcJKE6DBEP6oxXumi
 f79ANUAqrV3d14jW7pbcO8654sfE
X-Google-Smtp-Source: APiQypJ7utbT+RgfJsQ2oYyTu873KNdIb2Nm4Ap6dOiXIX+W2u6EIOqH/ku8ZAWjn633nkytkpRnmQ==
X-Received: by 2002:a05:651c:1121:: with SMTP id
 e1mr5030292ljo.205.1587713416114; 
 Fri, 24 Apr 2020 00:30:16 -0700 (PDT)
To: <cygwin@cygwin.com>
Subject: posix_spawnp creates ghost processes
Date: Fri, 24 Apr 2020 09:30:14 +0200
Message-ID: <008201d61a0a$328a5510$979eff30$@gmail.com>
MIME-Version: 1.0
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AdYaCGcs7bBxZUHxRyeJM37LqYsOKA==
Content-Language: en-gb
X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
 SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Kristian Ivarsson via Cygwin <cygwin@cygwin.com>
Reply-To: sten.kristian.ivarsson@gmail.com
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

Hi all

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)

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 ?



Kristian

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