summaryrefslogtreecommitdiff
path: root/nuttx/sched/sched_waitid.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/sched_waitid.c')
-rw-r--r--nuttx/sched/sched_waitid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/sched/sched_waitid.c b/nuttx/sched/sched_waitid.c
index 9c24189c4..26804f344 100644
--- a/nuttx/sched/sched_waitid.c
+++ b/nuttx/sched/sched_waitid.c
@@ -342,10 +342,10 @@ int waitid(idtype_t idtype, id_t id, FAR siginfo_t *info, int options)
{
/* We know that the child task was running okay we stared,
* so we must have lost the signal. What can we do?
- * Let's claim we were interrupted by a signal.
+ * Let's return ECHILD.. that is at least informative.
*/
- err = EINTR;
+ err = ECHILD;
goto errout_with_errno;
}
#endif