Skip to contentSkip to conversation

lib/alchemy/task: Drop EINTR from valid return codes of rt_task_suspend

PATCH New Jan Kiszka 1 participant 1 message Jul 8

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

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.

---
 lib/alchemy/task.c | 3 ---
 1 file changed, 3 deletions(-)
lib/alchemy/task.c +0 -3
index df5a6da76a..73844d34ae 100644
@@ -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