|
rt_task_delete() behaviour: msg#00114linux.real-time.xenomai.devel
Jan Kiszka wrote: Anyway, leaving a native task with rt_task_delete(NULL) raises SIGKILL Actually, the issue is different, it depends on the underlying kernel support; it's Xenomai's shadow manager who sends the termination signal when demoting threads from kernel space, the pthread API is not involved here. The nucleus happens to kill the thread group over 2.6 because thread group support is fully implemented on this kernel, and calling the kill_proc() API with a termination signal would properly kill all threads belonging to the group the target thread belongs to. This does not work over 2.4 which puts every new thread in its own group by default, de facto making it as a group leader, regardless of the CLONE_THREAD attribute being set or not when the glibc calls the clone() service. IOW, you actually end up having two different behaviours when calling rt_task_delete() whether 2.4 or 2.6 is considered, even if both setups rely on the NPTL on the application side. For now I would say the best we can do is to avoid the This would not be a limitation in some cases actually: e.g. continuing an application that had thread(s) killed from another _process_ would be most often meaningless.
I don't think I've coded this stuff, but reading it, I would say that since the preceding call to pthread_cancel() might have caused the target thread to be wiped out before the nucleus syscall is issued, -ESRCH would not be a real error. Jan -- Philippe. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [REQUEST] eliminate the rthal_critical_enter/exit() from rthal_irq_request(): 00114, Philippe Gerum |
|---|---|
| Next by Date: | Re: [patch] xeno-test: replace 'head -3' with 'head -n 3': 00114, Philippe Gerum |
| Previous by Thread: | Re: [PATCH] Fixs doxygen doc on rt_queue_read in ksrc/native/queue.c (for SVN version)i: 00114, Jan Kiszka |
| Next by Thread: | Re: [PATCH] Fixs doxygen doc on rt_queue_read in ksrc/native/queue.c (for SVN version): 00114, Rodrigo Rosenfeld Rosas |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |