aboutsummaryrefslogblamecommitdiffstats
path: root/tests/fork-stop.c
blob: 0682848e99b08e275f123caceefe6e50cef1184b (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                       
#include <signal.h>
#include <unistd.h>

int
main(void)
{
	if (fork() == -1)
		return -1;
	return kill(getpid(), SIGSTOP);
}