From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dfmta1004.biglobe.ne.jp (snd01005-bg.im.kddi.ne.jp [27.86.113.21]) by sourceware.org (Postfix) with ESMTPS id 9A5A23856269 for ; Thu, 19 May 2022 04:51:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9A5A23856269 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=kba.biglobe.ne.jp Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kba.biglobe.ne.jp Received: from mail.biglobe.ne.jp by omta1004.biglobe.ne.jp with ESMTP id <20220519045108258.LRQE.17100.mail.biglobe.ne.jp@biglobe.ne.jp> for ; Thu, 19 May 2022 13:51:08 +0900 From: Jun T Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Subject: Re: killpg(pgid, 0) fails if the process is in the middle of spawnve() Date: Thu, 19 May 2022 13:51:07 +0900 References: <08B78336-7554-4ACA-80EF-F87C3C04C781@kba.biglobe.ne.jp> To: "Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin" In-Reply-To: Message-Id: <0C6FFD9B-F723-4F8C-BDA9-A67A64EB71E0@kba.biglobe.ne.jp> X-Mailer: Apple Mail (2.3445.104.21) X-Biglobe-Sender: takimoto-j@kba.biglobe.ne.jp X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: Thu, 19 May 2022 04:51:15 -0000 > 2022/05/18 23:54, Corinna Vinschen wrote: > > For a start, can you try the above patch? Thanks for a quick response. The patch seems to solve the problem. Of course there is a possibility that it happens with very low probability, but I haven't get the problem by running 'cmd | less' many times, say fifty times or so. I didn't notice any bad side effects, and I guess the probability is very low if it ever happens (so not easy to detect it). # I tried running 'ls | less' several times while running # while true; do ps; done # in another terminal, but didn't get duplicated processes. PS: I'm new to building cygwin1.dll by myself, and have a few questions: (1) After make, I've manually copied new-cygwin1.dll to /bin/cygwin1.dll. I didn't copy/install any other files. Is this OK? (2) What are cygwin0.dll and cygwin1.dbg? The latter is a new cygwin1.dll with debug info? (3) Is there a simple way to build only new-cygwin1.dll (and anything required by it), without building (or trying to build) unnecessary things (especially documents)? -- Jun