Re: sigpending() incorrectly returns signals pending on other threads

2019-07-15 Thread Houder
On Mon, 15 Jul 2019 09:53:27, Corinna Vinschen wrote: > On Jul 14 15:19, Houder wrote: > > .. uhm, just a note in the interest of accuracy ... > > > > - standard signals (which include USRSIG1 and USRSIG2) are not queued > >(traditional signal semantics) > > - only real-time signals should

Re: sigpending() incorrectly returns signals pending on other threads

2019-07-15 Thread Corinna Vinschen
On Jul 14 15:19, Houder wrote: > On Fri, 12 Jul 2019 17:33:51, Corinna Vinschen wrote: > > > On Jul 6 19:15, Kenton Varda wrote: > > > > I found a second problem which may or may not be related: > > > > If two threads use pthread_kill() to send each other the same signal, > > > such that the s

Re: sigpending() incorrectly returns signals pending on other threads

2019-07-14 Thread Houder
On Fri, 12 Jul 2019 17:33:51, Corinna Vinschen wrote: > On Jul 6 19:15, Kenton Varda wrote: > > I found a second problem which may or may not be related: > > If two threads use pthread_kill() to send each other the same signal, > > such that the signal should be separately pending on both thre

Re: sigpending() incorrectly returns signals pending on other threads

2019-07-12 Thread Corinna Vinschen
On Jul 6 19:15, Kenton Varda wrote: > I found a second problem which may or may not be related: > > 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

Re: sigpending() incorrectly returns signals pending on other threads

2019-07-12 Thread Corinna Vinschen
On Jul 6 15:46, Kenton Varda wrote: > Hello Cygwin, > > According to the (Linux) man page: "sigpending() returns the set of > signals that are pending for delivery to the calling thread" > > However, on Cygwin, sigpending() seems to return the set of signals > pending on any thread, as shown in

Re: sigpending() incorrectly returns signals pending on other threads

2019-07-06 Thread Kenton Varda
I found a second problem which may or may not be related: 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 ignore

sigpending() incorrectly returns signals pending on other threads

2019-07-06 Thread Kenton Varda
Hello Cygwin, According to the (Linux) man page: "sigpending() returns the set of signals that are pending for delivery to the calling thread" However, on Cygwin, sigpending() seems to return the set of signals pending on any thread, as shown in the attached test program. Among other things, thi