This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: About POSIX signals


Juancho Andrés Sáez wrote:
> 
> I'm in trouble with POSIX signals.
> ¿Are POSIX signals delivered in the ASR POSIX routine?
> I mean, I try to send a signal from one thread to another,
> but 'cyg_posix_signal_asr' function is called from
> the signal origin thread after calling 'kill(other thread,SIGNAL)',
> but this call is not done from any ASR routine.
> ¿How are POSIX signals delivered from one thread to another ?

You mean pthread_kill() surely? If you use kill() then that sends a signal
to the whole process (and in eCos there is only one process), not just one
thread. Therefore any thread can receive it (unless explicitly masked).

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]