From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 64848 invoked by alias); 12 Jul 2019 15:34:05 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 64841 invoked by uid 89); 12 Jul 2019 15:34:05 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-104.9 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=HX-Languages-Length:755, H*F:D*cygwin.com X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.135) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 12 Jul 2019 15:33:55 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MvryJ-1iecVj1RUV-00ssiK; Fri, 12 Jul 2019 17:33:52 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id EFA60A8075E; Fri, 12 Jul 2019 17:33:51 +0200 (CEST) Date: Fri, 12 Jul 2019 15:34:00 -0000 From: Corinna Vinschen To: Kenton Varda Cc: cygwin@cygwin.com Subject: Re: sigpending() incorrectly returns signals pending on other threads Message-ID: <20190712153351.GH3772@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: Kenton Varda , cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="CdrF4e02JqNVZeln" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) X-SW-Source: 2019-07/txt/msg00100.txt.bz2 --CdrF4e02JqNVZeln Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 694 On Jul 6 19:15, Kenton Varda wrote: > I found a second problem which may or may not be related: >=20 > If two threads use pthread_kill() to send each other the same signal, > such that the signal should be separately pending on both threads at > the same time, only one of the two signals is actually queued. It > seems that pthread_kill() is ignored if the same signal is already > pending on some other thread. The current signal mechanism in Cygwin only allows for a signal to be queued once. Changing that is a pretty ambitioned task, which I simply don't have enought time for. However, patches to change that are more than welcome. Corinna --=20 Corinna Vinschen Cygwin Maintainer --CdrF4e02JqNVZeln Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl0oqF8ACgkQ9TYGna5E T6AGVg//ZqyYSbqcwwujptT9Tseyg7h1vpF9G3W+zT7B+0bXDXKl9FqOH8YXOEYy LjNYr1pj0wmjf/hgajRgRKKGdZYCgQuzfadlpbJieF/J428vAVwE+dqde1N2jMV4 DUinYXlNXVwlq53nN2TtZ6Xnn/cweJEKq6m3LwNFugaJVUQUGHWkMr33kCu61cll 7e9BRvspT2h3edanaLKe7jEtcI9OvvNuc92fbRy7K3RDnrCdveULZ0QxEaxkHRql GBUi4yKkE1mVaDs5OOoxqnjY2pbhyTNeQw8aK9FJvlLSv1WGxEzcynRbVd+whCmm vzs3RDo69P3d6+qtTOxOD05eRevIcHjQu96WtDRISCwLSMiHjVTjcSpZfOiY6aEZ js7jNpP2y4zHWGjMS5GksvB4pZeWgWZW+jJMAf/AXuga/EnUyCUQOBbgaF2KzWvV Z0LVyOyhlyo1Do8+f2Qawx1tFE/oizKvDJqYh+UrD01mRv63uo3PfyUPR20KNoat jKLhRHbPIuMTT07lTN3HgvxiFSC7Aj+gR0tf7FUvVQSZDXqUtVpC5cHnvcXBOkQT VZLZ64YQ1LJTGaDnBzxBbo1sHGiLfwmMdS1ETdhK8T9/TZEVBWUk6M29PsZE+o2W yGtv8YvHbGRD2UxINFS72b0iEGzCWxOKmSC9XxCpSJi3u/UFf/Q= =YpxL -----END PGP SIGNATURE----- --CdrF4e02JqNVZeln--