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.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 From: Jun T 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 AT kba DOT biglobe DOT ne DOT 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 AT kba DOT biglobe DOT ne DOT 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 AT cygwin DOT 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" > 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 -- 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