All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] signaling to a thread waiting on an event in the kernel
@ 2009-12-28  9:59 Yigal Goldberger
  2009-12-28 14:52 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Yigal Goldberger @ 2009-12-28  9:59 UTC (permalink / raw)
  To: xenomai

Hi,

I want to have the ability to restart a process at all times.
I have a situation where a thread is waiting on an event in the kernel with : 
rtdm_event_timedwait(&args,0,NULL)  - infinite wait (I need this infinite wait ...) 

and I cannot restart it with  :

kill(Pid,SIGTERM) .

from a different process .

Suggestions are most welcome.

Yigal Goldberger.




      


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

* Re: [Xenomai-help] signaling to a thread waiting on an event in the kernel
  2009-12-28  9:59 [Xenomai-help] signaling to a thread waiting on an event in the kernel Yigal Goldberger
@ 2009-12-28 14:52 ` Philippe Gerum
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2009-12-28 14:52 UTC (permalink / raw)
  To: Yigal Goldberger; +Cc: xenomai

On Mon, 2009-12-28 at 01:59 -0800, Yigal Goldberger wrote:
> Hi,
> 
> I want to have the ability to restart a process at all times.
> I have a situation where a thread is waiting on an event in the kernel with : 
> rtdm_event_timedwait(&args,0,NULL)

>   - infinite wait (I need this infinite wait ...) 
> 
> and I cannot restart it with  :
> 
> kill(Pid,SIGTERM) .
> 
> from a different process .
> 
> Suggestions are most welcome.
> 

Please be more specific:

- what happens when SIGTERM is sent, exactly? does your app hang on the
RTDM syscall invoking rtdm_event_timedwait() from your driver, or does
the entire system lock up badly?
- did you check whether rtdm_event_timedwait() returned with an error
code, such as -EINTR?
- which platform, whick kernel release, which Xenomai release are you
running?

Btw, rtdm_event_wait(&event) is a shorthand for
rtdm_event_timedwait(&event,0,NULL).

> Yigal Goldberger.
> 
> 
> 
> 
>       
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help


-- 
Philippe.




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

end of thread, other threads:[~2009-12-28 14:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-28  9:59 [Xenomai-help] signaling to a thread waiting on an event in the kernel Yigal Goldberger
2009-12-28 14:52 ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.