2 * Copyright (c) 2002-3, Intel Corporation. All rights reserved.
3 * Created by: salwan.searty REMOVE-THIS AT intel DOT com
4 * This file is licensed under the GPL license. For the full content
5 * of this license, see the COPYING file at the top level of this
8 * Test that the killpg() function shall return -1 on failure.
12 #define _XOPEN_SOURCE 600
19 #include "posixtest.h"
21 void handler(int signo)
23 printf("Caught signal being tested!\n");
24 printf("Test PASSED\n");
32 if ((pgrp = getpgrp()) == -1) {
33 printf("Could not get process group number\n");
34 return PTS_UNRESOLVED;
37 if (killpg(pgrp, -1) != -1) {
38 printf("Test FAILED: killpg did not return -1 even though it was passed an invalid signal number.");
42 printf("Test PASSED\n");