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 
13 #include <signal.h>
14 #include <stdio.h>
15 #include <stdlib.h>
16 #include <unistd.h>
17 #include "posixtest.h"
18 
main(void)19 int main(void)
20 {
21 	if (killpg(getpgrp(), 0) != 0) {
22 		printf("Could not call killpg with sig = 0\n");
23 		return PTS_FAIL;
24 	}
25 
26 	printf("Test PASSED\n");
27 	return PTS_PASS;
28 }
29