mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-22 15:27:32 +00:00
Honor 0 as PID of caller.
This commit is contained in:
@@ -129,7 +129,7 @@ int sched_rr_get_interval(
|
|||||||
* Only supported for the "calling process" (i.e. this node).
|
* Only supported for the "calling process" (i.e. this node).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( pid != getpid() )
|
if ( pid && pid != getpid() )
|
||||||
set_errno_and_return_minus_one( ESRCH );
|
set_errno_and_return_minus_one( ESRCH );
|
||||||
|
|
||||||
if ( !interval )
|
if ( !interval )
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ int sched_rr_get_interval(
|
|||||||
* Only supported for the "calling process" (i.e. this node).
|
* Only supported for the "calling process" (i.e. this node).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( pid != getpid() )
|
if ( pid && pid != getpid() )
|
||||||
set_errno_and_return_minus_one( ESRCH );
|
set_errno_and_return_minus_one( ESRCH );
|
||||||
|
|
||||||
if ( !interval )
|
if ( !interval )
|
||||||
|
|||||||
Reference in New Issue
Block a user