summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-07-01 22:57:23 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-07-01 22:57:23 +0000
commited1a0e51b3455a3eaf4945d2f6b277708b93c00c (patch)
tree0606c704a2c6fbacb77c6ed7056d904f69162d7e /c
parent78b78e23832e443afbdcede9182ae9eae1c4297e (diff)
downloadrtems-ed1a0e51b3455a3eaf4945d2f6b277708b93c00c.tar.bz2
Honor 0 as PID of caller.
Diffstat (limited to 'c')
-rw-r--r--c/src/exec/posix/src/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/exec/posix/src/sched.c b/c/src/exec/posix/src/sched.c
index e558126926..30c58ca8a5 100644
--- a/c/src/exec/posix/src/sched.c
+++ b/c/src/exec/posix/src/sched.c
@@ -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 )