public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* RE: [ECOS] POSIX Signals
@ 2005-04-21 18:56 Ali, Khurram
  0 siblings, 0 replies; 3+ messages in thread
From: Ali, Khurram @ 2005-04-21 18:56 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: eCos Discussion

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] POSIX Signals
  2005-04-20  1:26 Ali, Khurram
@ 2005-04-21 18:54 ` Andrew Lunn
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2005-04-21 18:54 UTC (permalink / raw)
  To: Ali, Khurram; +Cc: eCos Discussion

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ECOS] POSIX Signals
@ 2005-04-20  1:26 Ali, Khurram
  2005-04-21 18:54 ` Andrew Lunn
  0 siblings, 1 reply; 3+ messages in thread
From: Ali, Khurram @ 2005-04-20  1:26 UTC (permalink / raw)
  To: eCos Discussion

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?

Thank you,
Khurram


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-04-21 18:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-21 18:56 [ECOS] POSIX Signals Ali, Khurram
  -- strict thread matches above, loose matches on Subject: below --
2005-04-20  1:26 Ali, Khurram
2005-04-21 18:54 ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).