[ECOS] POSIX Signals

Ali, Khurram Khurram_Ali@mentor.com
Thu Apr 21 18:56:00 GMT 2005


Andrew,

Thanks. I am using Real Time Signals now (24 to 31 only) and things are
working fine.

Khurram

-----Original Message-----
From: Andrew Lunn [mailto:andrew@lunn.ch] 
Sent: Thursday, April 21, 2005 1:51 PM
To: Ali, Khurram
Cc: eCos Discussion
Subject: Re: [ECOS] POSIX Signals

On Tue, Apr 19, 2005 at 03:04:49PM -0500, Ali, Khurram wrote:
> Hi,
> 
> In my application, I am using signal numbered 18 to 31. Is that
allowed?
> 
> I send a signal 31 using kill(0, 31). My signal 31 has an action
handler
> that gets called. I then call sigwait from another thread with 31
added
> to sigset_t. However, sigwait does not return. If I call kill and
> sigwait from the same thread, things work okay.
> 
> Am I doing something wrong or am I missing something?

Is this other thread also a posix thread?

It is probably worth single stepping through kill() to see what it
does. That might give you a clue as to why your code is not working.

        Andrew

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list