This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: POSIX Signals
- From: "Ali, Khurram" <Khurram_Ali at mentor dot com>
- To: "Andrew Lunn" <andrew at lunn dot ch>
- Cc: "eCos Discussion" <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 21 Apr 2005 13:54:34 -0500
- Subject: RE: [ECOS] POSIX Signals
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