This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: About POSIX signals
- To: Juancho Andrés Sáez <juancho at urano dot sidsa dot es>
- Subject: Re: [ECOS] About POSIX signals
- From: Jonathan Larmour <jlarmour at cygnus dot co dot uk>
- Date: Wed, 22 Nov 2000 04:12:25 +0000
- CC: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <027201c053d7$70581a30$be5635c3@sidsa.es>
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