summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/proc13.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxhdrs/proc13.c')
-rw-r--r--testsuites/psxtests/psxhdrs/proc13.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/proc13.c b/testsuites/psxtests/psxhdrs/proc13.c
index fc7d06b5fe..b530478b97 100644
--- a/testsuites/psxtests/psxhdrs/proc13.c
+++ b/testsuites/psxtests/psxhdrs/proc13.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 pid;
pid = setsid();
+
+ return (pid == -1) ? -1 : 0;
}