Honor 0 as PID of caller.

This commit is contained in:
Joel Sherrill
1999-07-01 22:57:23 +00:00
parent 78b78e2383
commit ed1a0e51b3
2 changed files with 2 additions and 2 deletions

View File

@@ -129,7 +129,7 @@ int sched_rr_get_interval(
* Only supported for the "calling process" (i.e. this node).
*/
if ( pid != getpid() )
if ( pid && pid != getpid() )
set_errno_and_return_minus_one( ESRCH );
if ( !interval )

View File

@@ -129,7 +129,7 @@ int sched_rr_get_interval(
* Only supported for the "calling process" (i.e. this node).
*/
if ( pid != getpid() )
if ( pid && pid != getpid() )
set_errno_and_return_minus_one( ESRCH );
if ( !interval )