diff options
-rw-r--r-- | c/src/exec/posix/src/sched.c | 2 | ||||
-rw-r--r-- | cpukit/posix/src/sched.c | 2 |
2 files changed, 2 insertions, 2 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 ) 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 ) |