lkml.org 
[lkml]   [2000]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] Fix queued SIGIO
Date
On Wed, 20 Sep 2000, Julian Anastasov wrote:
>Hello,
>
>On Tue, 19 Sep 2000, Robert H. de Vries wrote:
>> It would be better to change SI_SIGIO in all the
>> include/asm-*/siginfo.h files from -5 to __SI_CODE(__SI_SIGIO, -5)
>> __SI_SIGIO would become (6 << 16).
>
> This is not needed for SI_SIGIO. It is not generated from
>the kernel. It seems this interface is already obsoleted.

I think you are mistaking. The purpose of SIGIO is to notify user programs of
IO events detected by the kernel. So its use is almost exclusively in the
kernel.
The reason it currently breaks is that when send_sig_info is used with real
info data the check SI_FROMUSER evaluates to true.
Other calls use a pointer to address 1 (ugh!) to inform bad_signal() that
this signal is generated by the kernel.

Robert

--
Robert de Vries
rhdv@rhdv.cistron.nl
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.065 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site