diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-07-01 22:57:23 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-07-01 22:57:23 +0000 |
commit | ed1a0e51b3455a3eaf4945d2f6b277708b93c00c (patch) | |
tree | 0606c704a2c6fbacb77c6ed7056d904f69162d7e /cpukit | |
parent | Another attempt at getting everything to build with the new powerpc (diff) | |
download | rtems-ed1a0e51b3455a3eaf4945d2f6b277708b93c00c.tar.bz2 |
Honor 0 as PID of caller.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/posix/src/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/src/sched.c b/cpukit/posix/src/sched.c index e558126926..30c58ca8a5 100644 --- a/cpukit/posix/src/sched.c +++ b/cpukit/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 ) |