mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
sched/sched/sched_waitpid.c: Remove a bad error check. I though Juha already removed this problem. Did I lose his change?
This commit is contained in:
@@ -193,17 +193,6 @@ pid_t waitpid(pid_t pid, int *stat_loc, int options)
|
|||||||
|
|
||||||
(void)enter_cancellation_point();
|
(void)enter_cancellation_point();
|
||||||
|
|
||||||
/* None of the options are supported */
|
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_FEATURES
|
|
||||||
if (options != 0)
|
|
||||||
{
|
|
||||||
set_errno(ENOSYS);
|
|
||||||
leave_cancellation_point();
|
|
||||||
return ERROR;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Disable pre-emption so that nothing changes in the following tests */
|
/* Disable pre-emption so that nothing changes in the following tests */
|
||||||
|
|
||||||
sched_lock();
|
sched_lock();
|
||||||
|
|||||||
Reference in New Issue
Block a user