diff options
Diffstat (limited to 'testsuites/psxtests/psxhdrs/proc12.c')
-rw-r--r-- | testsuites/psxtests/psxhdrs/proc12.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/proc12.c b/testsuites/psxtests/psxhdrs/proc12.c index 93a237bb30..cf01aca2f7 100644 --- a/testsuites/psxtests/psxhdrs/proc12.c +++ b/testsuites/psxtests/psxhdrs/proc12.c @@ -19,11 +19,13 @@ #include <sys/types.h> #include <unistd.h> -void test( void ); +int test( void ); -void test( void ) +int test( void ) { pid_t pgrp; pgrp = getpgrp(); + + return (pgrp == -1) ? -1 : 0; } |