lib/alchemy/task: Drop EINTR from valid return codes of rt_task_suspend
PATCH 1/1 lib/alchemy/task: Drop EINTR from valid return codes of rt_task_suspend
From: Jan Kiszka <[email protected]>
Suspension is implemented by raising SIGSUSP via kill(). This service restarts the syscall when being interrupted by a signal, thus will never return -EINTR. This has always been like that since release 3.0, only Xenomai 2.x returned -EINTR on signal interruptions. Align the doc to this long-standing reality.
Signed-off-by Jan Kiszka <[email protected]>
--- lib/alchemy/task.c | 3 --- 1 file changed, 3 deletions(-)
lib/alchemy/task.c +0 -3
@@ -1130,9 +1130,6 @@ int rt_task_same(RT_TASK *task1, RT_TASK *task2)* Xenomai task, or if @a task is non-NULL but not a valid task * descriptor. * -* - -EINTR is returned if a Linux signal has been received by the -* caller if suspended. -* * - -EPERM is returned if @a task is NULL and this service was called * from an invalid context. *
Signature · 1 line
2.47.3