signaling to a thread waiting on an event in the kernel
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.
Quoted 8 lines · Yigal Goldberger
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 ...)
Quoted 8 lines
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 forrtdm_event_timedwait(&event,0,NULL).
Quoted 11 lines
Yigal Goldberger.
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Signature · 1 line
Philippe.