1 /* 2 * Copyright (c) 2003, 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 6 * source tree. 7 8 Call killpg on the current process with 0 as the signal number. If killpg 9 returns success, then we pass. 10 */ 11 12 #define _XOPEN_SOURCE 600 13 14 #include <signal.h> 15 #include <stdio.h> 16 #include <stdlib.h> 17 #include <unistd.h> 18 #include "posixtest.h" 19 20 int main(void) 21 { 22 if (killpg(getpgrp(), 0) != 0) { 23 printf("Could not call killpg with sig = 0\n"); 24 return PTS_FAIL; 25 } 26 27 printf("Test PASSED\n"); 28 return PTS_PASS; 29 } 30