Message-ID: <532F0BCF.5080603@xenomai.org> Date: Sun, 23 Mar 2014 17:29:03 +0100 From: Philippe Gerum MIME-Version: 1.0 References: <1394996997.10478.YahooMailNeo@web171605.mail.ir2.yahoo.com> <5326AE7E.3050201@xenomai.org> <1395076680.34261.YahooMailNeo@web171604.mail.ir2.yahoo.com> <1395582539.27462.YahooMailNeo@web171602.mail.ir2.yahoo.com> In-Reply-To: <1395582539.27462.YahooMailNeo@web171602.mail.ir2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] Issue suspending threads on mercury List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Matthias Schneider , "xenomai@xenomai.org" On 03/23/2014 02:48 PM, Matthias Schneider wrote: > If I understand correctly, the desired behavior, i.e. sending a signal to a > specific thread, would just be achieved up to Linux 2.6.12. Note that I also > stumbled over some manpages that did not include the paragraph above... > This makes sense, as the notifier logic was written many moons ago. > Using F_SETOWN_EX like in the attached patch solves my problem (at least the > described one) with the misdirected signals. However I still do not understand > why the signal seems to have been delivered sometimes to the correct thread and > sometimes not, but the answer can probably be found studying the kernel sources.. > wants_signal() probably diverts the signal to another thread, because the original target is either traced (gdb) or already received a signal which is still pending delivery. -- Philippe.