delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/05/19/03:46:46

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5B65638515D3
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1652946405;
bh=nCRnOM56iWCvCTgP5fo6qXT8cDVrTXGn7Z1mDCU+LLw=;
h=Date:From:To:Subject:References:In-Reply-To:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
Reply-To:Cc:From;
b=MPVt/eanV5+3MPENg2ZZOfb7NtM4fvCGuEsY0OQERj2tiYeBYNlmzZJCaXTjENJlp
5FyrmvjfKQgT7QQEPuYG3Ag2zoZAHko2n205YO1LH9ThZHrPYcIUM7fuT1BaKEirwS
0SoLi2vL1GOBLqQEGxzZUs8GZlr8WlHWqx46eQ5I=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B699A38515D9
Authentication-Results: sourceware.org;
dmarc=fail (p=none dis=none) header.from=cygwin.com
Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=cygwin.com
Date: Thu, 19 May 2022 09:46:05 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: Jun T <takimoto-j AT kba DOT biglobe DOT ne DOT jp>
Subject: Re: killpg(pgid, 0) fails if the process is in the middle of spawnve()
Message-ID: <YoX1vTcWe7lI9JFd@calimero.vinschen.de>
Mail-Followup-To: Jun T <takimoto-j AT kba DOT biglobe DOT ne DOT jp>, cygwin AT cygwin DOT com
References: <08B78336-7554-4ACA-80EF-F87C3C04C781 AT kba DOT biglobe DOT ne DOT jp>
<YoUIi9n3xoUogD1z AT calimero DOT vinschen DOT de>
<0C6FFD9B-F723-4F8C-BDA9-A67A64EB71E0 AT kba DOT biglobe DOT ne DOT jp>
MIME-Version: 1.0
In-Reply-To: <0C6FFD9B-F723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4Mv4pn7SeNjyk6ajoVv4+/4glcsJBWi437Shs3x2NYBDIrCCfdQaHQ=
X-Spam-Status: No, score=-95.2 required=5.0 tests=BAYES_00,
GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE,
SPF_FAIL, SPF_HELO_NONE, 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
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://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: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: cygwin AT cygwin DOT com
Cc: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On May 19 13:51, Jun T wrote:
> 
> > 2022/05/18 23:54, Corinna Vinschen <corinna-cygwin AT cygwin DOT com> 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.

Great, thanks for testing. I'll push the patch as is for now.

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

Yes.

> (2) What are cygwin0.dll and cygwin1.dbg? The latter is a new cygwin1.dll
> with debug info?

cygwin0.dll is an intermediate stage during build, cygwin1.dbg is the
debuginfo file.  For quick debugging, you can just copy it alongside the
DLL into /bin.

> (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)?

  configure --disable-doc

Everything else is built unconditionally.  If you tweak sources
inside ${srcdir}/winsup/cygwin only, it's usually sufficient to rebuild
inside ${builddir}/x86_64-pc-cygwin/winsup/cygwin only, unless you
change the layout/size of data structures. A build from toplevel
should be performed then.


Thanks,
Corinna

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