delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/04/24/08:48:35

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7275A3893659
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1587732471;
bh=NJu0ntw8KwcWbGFd8fGrnE8gBO0oktXYf4zoWvSX//8=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=hXu3CEdl3KMhR0mJvaYofxeSdod89sOBWrgr0ur3MnJgGoa7Ki9bMY1zHW7rQqHk2
BZ0Nofz8VHKdO3bgrkKp9JbDryPvKXGm2dkaXAOPXqijtsuaCGYm4+Mu9PA4i8IUbc
prsxXuW7L5PVm+oFgzMCkBMKbu2BP8IyT5e3Ly/M=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3B75E38930F7
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=QvRYUhsy1UhoGyvSCz4MoSuJLHa5Og3+Zo7CP8fA40tiApSVDU8DTKrYDnwi1PxGcu9Wk1LUqHXtD7+9ByzNzqfG3F50nU6ZZVG15F5CRZ5iEa9LF/ccS6FkMOe0oqui/6XoHmCvwUJ3F5gZ04Mb01nMEwlKA4CNfCidBXCCyBA0EV8It/eVe3lk/r8Ex86V172aiv8y64rfsStZbCeRglnNEASFgsYRyCIFh+ZmcbKNpOrbFFE3ugpKGSCqKTiu8MrZCAgcBvYv+CIFlSQJPxdqmSOL4efFqF+yfyeIJdw2uuwrZvdqsN/3v7pQJdq2zg7LZyK6R1k8YgZen8855w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=pBbHS1+h5AxcR9D9Pu0ASw47WUt3HW8q7e+0sZd2E+I=;
b=iCNRd1tgn39PSKWQjWoVbH7fFf0PTbq5mfBXjCiS/xcHOFpp0WoJkLY9Gog3tQdbruf5t30fmI27D0knkvfvEwlp/ccy+CK6X5B2AFA825GCjcmsbQ0wnJK6MGPq4WM8b+Rb4oYzLGezuqOJrjrylIVvzg13nVK4v/8t18HfOABNUbvk/exHnN9GaUyn49jDBLEiR9qT6U4D3y05J/WuDv3R/t5hvF3W8Ii/42FROHPq+IzY0Scjv5gs3cOf96CmlB+icRHcD4bKx7S2iMgU0g7723jvK0nxJqjp0vkgsMEsuy+kzJrt4SxukZ3Uw2uW2vHlSXNnmy9j3DBaA1ZUYQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu;
dkim=pass header.d=cornell.edu; arc=none
Subject: Re: posix_spawnp creates ghost processes
To: cygwin AT cygwin DOT com
References: <008201d61a0a$328a5510$979eff30$@gmail.com>
Message-ID: <41635049-2112-0d95-4adf-3e14f6f96029@cornell.edu>
Date: Fri, 24 Apr 2020 08:47:42 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.7.0
In-Reply-To: <008201d61a0a$328a5510$979eff30$@gmail.com>
X-ClientProxiedBy: CH2PR14CA0024.namprd14.prod.outlook.com
(2603:10b6:610:60::34) To DM6PR04MB6075.namprd04.prod.outlook.com
(2603:10b6:5:127::31)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
X-Originating-IP: [68.175.129.7]
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 1b9f3ff9-a8b0-4545-87b3-08d7e84dae7b
X-MS-TrafficTypeDiagnostic: DM6PR04MB6606:
X-Microsoft-Antispam-PRVS: <DM6PR04MB66060327485E8A81E98BC2DCD8D00 AT DM6PR04MB6606 DOT namprd04 DOT prod DOT outlook DOT com>
X-MS-Oob-TLC-OOBClassifiers: OLM:4941;
X-Forefront-PRVS: 03838E948C
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:DM6PR04MB6075.namprd04.prod.outlook.com; PTR:; CAT:NONE;
SFTY:;
SFS:(4636009)(366004)(136003)(39860400002)(396003)(376002)(346002)(6486002)(81156014)(16576012)(786003)(8936002)(316002)(6916009)(16526019)(75432002)(186003)(31686004)(31696002)(86362001)(8676002)(5660300002)(52116002)(2616005)(66556008)(36756003)(2906002)(53546011)(66476007)(66946007)(26005)(4744005)(956004)(478600001);
DIR:OUT; SFP:1102;
Received-SPF: None (protection.outlook.com: cornell.edu does not designate
permitted sender hosts)
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: 3moBz4a0EysyYADYfZ36VETqNmtd1mp4P/+KgTR1DwhugYAWUMv6ZYk5xVU0XLVa9K7C9vqqFI0zcrtmc4fY29NZXXBYhVruFTJ21zv3e0CnR9j0cg29mSqZKu4kaRs0/qv9KhqqBOdBCmRm1IIaG8lX57W8nw3mMMu4UUfLsejzTKAyTT9Hy4VyG76oiF6GS1FHM5OLHAaxGgNYFh5nZzlInyNOR7k1kcxs8xqHOcVM5X84xIZ0VHI8fI0t+/xUNr0e65VjpcsKCCzMH8CUHxIc5N7IXdH5k+6UEHeOtjs3Q2kzetoVUu3XrRhunFPPJ6LLBi3UVmZ9eeoed3Nc21eSkgIiebTg/qiboSoTDNDMYLqZ+GBdSr/7PD8s3i7n6zkWIFweQ2yAE7XMy5kie1KcEq1FTZ9LUbymQSa+PYN3hERsM9p7BlFVOIS8Kmat
X-MS-Exchange-AntiSpam-MessageData: I3YxJTjQZ0I7XFhTZFk3cS8PsZx5/Gc2Sm4m+lf5joDFr8GD0gANaovTEa7lBvf+ChAWlOdjIb8HJf1sy6002Tqd/BXEqW2ilTkGyOOEYMatMLvCNo0nrF6koKf7h8rk6KFGpAw3EFo2rBicKmU6/A==
X-OriginatorOrg: cornell.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: 1b9f3ff9-a8b0-4545-87b3-08d7e84dae7b
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2020 12:47:43.6110 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: D8QKcfuyi97wpHoNftJRacYKfiE2r2y7H5/xITgu8kELUwHUG2pyAorFI3pJoH1iBe+jNKXAbmDkXFoRMY4OdQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR04MB6606
X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, MSGID_FROM_MTA_HEADER,
RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, 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 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>
From: Ken Brown via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Ken Brown <kbrown AT cornell DOT edu>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On 4/24/2020 3:30 AM, Kristian Ivarsson via Cygwin wrote:
> 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 ?

Cygwin's posix_spawn uses execve under the hood.  The latter creates a new 
Windows process, does some housekeeping, and then transfers control from the old 
process to the new one.  There will be a short period of time when both 
processes exist from the Windows point of view.

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