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

Jan Kiszka <[email protected]> Wed, 8 Jul 2026 13:48:26 +0200
Newsgroups dev.linux.lists.xenomai
Message-ID <[email protected]>
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(-)

diff --git a/lib/alchemy/task.c b/lib/alchemy/task.c
index df5a6da76a..73844d34ae 100644
--- a/lib/alchemy/task.c
+++ b/lib/alchemy/task.c
@@ -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.
  *
-- 
2.47.3