diff options
Diffstat (limited to 'nuttx/sched/sched_waitpid.c')
-rw-r--r-- | nuttx/sched/sched_waitpid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/sched/sched_waitpid.c b/nuttx/sched/sched_waitpid.c index 0285c2673..e44ef6e21 100644 --- a/nuttx/sched/sched_waitpid.c +++ b/nuttx/sched/sched_waitpid.c @@ -461,10 +461,10 @@ pid_t waitpid(pid_t pid, int *stat_loc, 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 |