DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 5278JjTH880844 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 5278JjTH880844 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=nlSXp5hm X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE4173858C2C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1741335583; bh=EWJ84ZRrP7qDRSn57m/NzdAw2WCMMuwTXaZI/G5tuXs=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=nlSXp5hm4eLNeHHJFhEsNMcXvLx9+t361TSuN99nhUnwrRtConb568CtIrmtT040h oZDsF8kA8iZUjXSUfjn2+XzOz8dii3nzj43ZMt9qFLEwvGC/kLO/gvWUF439aW74Mp IRjcDusmmdr5YcfXIQkFi/u17kNDgyQBSsPI1/Qo= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3578C3858D1E ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3578C3858D1E ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1741335541; cv=pass; b=cmklXxKvtevQIS3iMBOu6efblACG9+LUtktLRnQqldB3mYFvI1tW09Gl78o4LNIST6PeIE6zHMvxsQu5Cadoxm4SstDdNimDsI/g0kmD5+L/e1lx51XOsh7qWU47y4FCZzRiU13hm7FCMMHaKVwC7TFUbxlTof+xuyqD63YPrvE= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1741335541; c=relaxed/simple; bh=WRxoXyAq/uM82EPaB0sFWkxYsQ5OeRQ3HvCv2dCZIWI=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=ffd+k7WUYuWDSVV5hZk+dcpIg+aY7F+4boddSM+oA1GDO6kQVrlULL9gCbJb04ksn6w9x0g9jLtv4BQYuPwtT7iD3ZFzWh596z9ft50sZS19wr8Mp/tYUTcryUF0vAmFvTjeI2++hZFQT0bVEiZ6IOD6Pvfp3ni0VcpS7yrlTGI= ARC-Authentication-Results: i=2; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3578C3858D1E X-Sender-Id: dreamhost|x-authsender|gisburn AT nrubsig DOT org ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1741335539; a=rsa-sha256; cv=none; b=ibq/FhG/hKROHGR9Egnu7n6zc71omOkV+2s2IBDRsI5dDkVQd7NVWf+VeZE4vwL94yggZK eipQax6G6SUPUN5WVNCMbMZ4+2fSmrr+e3TqQxSg4xOfsWQM8+ks4GtFIoRcFrWBa9SBol MhFu7ZWvkOuNk9ZqwNnJ/InTKpczwQrGikAW8rGIWI3KvE2s9QSaV/y7KNKhYS7I+8ZD5k JWmctFMaFIIzHz/KYWlLcRttoVlYY8k6plLLurHPidOWdf2YmQxyPoYa/pkpnguZWQR8nk Y+2kMZ/o3c2p7iMNh3wgGsRk87KpasfpdOdFUIv2yCq96epCTfq8fY9Sa/bgwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1741335539; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=3XS0GLskFL6jwY/rrqYJ+i0WN8pPMGouj/2VA/vi7rg=; b=uBTQnEKNnws3+uWuG0Qf6E+QWwAwVYHbg/vuq4Ibkmg0KplgDaWmoFGAoGjTAfFWdJvrDQ VWpq2fE3TIeLVVHxOo/k5T2xjK+JFFNeMVdahmJW1KTO86gipzHKYZlu6mVswrNjlUaB9A MQcqy/GwLa1X57l5z8mlAGBly4sRHQ+JQFRbCH1kNIuiAM+kFyp4SAj39FqkNyY9AD7SHs /2dbYomsAPgyWiDc5MW7+5rLSThQsQqWeo0tCJlNVRbMb3VbVcDiX0BeAIGW99ib+0XFW5 2y4FjPBlqlK7vFzP9xx3ZHNZgTM0udwtl+GzliIpTFxwfq5Aadpl1XQPmMUCPw== ARC-Authentication-Results: i=1; rspamd-bc7dff857-xwsdk; auth=pass smtp.auth=dreamhost smtp.mailfrom=roland DOT mainz AT nrubsig DOT org X-Sender-Id: dreamhost|x-authsender|gisburn AT nrubsig DOT org X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|gisburn AT nrubsig DOT org X-MailChannels-Auth-Id: dreamhost X-Power-Battle: 258cfccd3e39fe7b_1741335539467_3948709005 X-MC-Loop-Signature: 1741335539467:250221588 X-MC-Ingress-Time: 1741335539466 X-Gm-Message-State: AOJu0YyfXQbbDJT3B6p2xRaTK8D+uY4LC5ToZdtrDPyvCyTsMhWo8PTb vLGRjBMxHbMMdF3h8Y9RndcbFJAVkmXsrF92V0njEroSkKz8UOUfn88zY2maeVrtr8ilL4/c/Qx h8gUldZR8IvMuH1UJkCZwmY8y5XQ= X-Google-Smtp-Source: AGHT+IEp0EpGx2tcHZygp2JVrynBpzMM66a+FsnvONFPfmQ/YK8atqwoE6x/J7cRRlm8hbORpefEgcAbLMPg54YEoTc= X-Received: by 2002:a5d:5847:0:b0:391:2e97:578b with SMTP id ffacd0b85a97d-39132db5acamr1420427f8f.53.1741335537606; Fri, 07 Mar 2025 00:18:57 -0800 (PST) MIME-Version: 1.0 References: <8c465025-4858-3113-fe2d-ce00dad21f8a AT t-online DOT de> <20250228212020 DOT 433a339f073060f65a0a736d AT nifty DOT ne DOT jp> <20250307162951 DOT f6d301ec44a0a51fdf32aaf3 AT nifty DOT ne DOT jp> In-Reply-To: <20250307162951.f6d301ec44a0a51fdf32aaf3@nifty.ne.jp> Date: Fri, 7 Mar 2025 09:18:31 +0100 X-Gmail-Original-Message-ID: X-Gm-Features: AQ5f1JodypcNX08CkE5oGeyx8BoP8uVmwaf3NeKTCiD3gMkCMu28ohL_O6BmOYs Message-ID: Subject: Re: lost signal (was: cygwin 3.6.0: Signals may fail permanently if received after SIGSTOP) To: cygwin AT cygwin DOT com X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Roland Mainz via Cygwin Reply-To: Roland Mainz Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 5278JjTH880844 On Fri, Mar 7, 2025 at 8:29 AM Takashi Yano via Cygwin wrote: > On Wed, 5 Mar 2025 11:23:26 +0100 > Christian Franke wrote: [snip] > > A 'ps' is a second terminal then shows that the child process is still > > in S)topped state. 'kill -CONT ...' works to continue. > > > > If the testcase is assigned to a single core with 'taskset 0x1 ...', it > > apparently always hangs. > > Thanks for the report and the testcase. > The current implementation of the signal queue has the following problems: > 1) Signals in the queue are processed in a disordered manner. > 2) If the same signal is already in the queue, new signal is discarded. Erm... that is actually the intended POSIX behaviour *except* for SIGRT* signals. Any signal coming queued more than one time *CAN* (it is not a requirement, and for some signals it's not useful, like |SIGCHLD|, because their siginfo data cannot be folded) be "folded" into one signal. The only exception in the POSIX standard are realtime signals, which have a realtime signal queue, and |sigqueue()| has a return code which indicates when the preallocated storage for realtime signals and their payload (see |sigval| argument in https://pubs.opengroup.org/onlinepubs/9799919799/functions/sigqueue.html) is full. ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland DOT mainz AT nrubsig DOT org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;) -- 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