aboutsummaryrefslogblamecommitdiffstats
path: root/tests/fork.c
blob: 7bbc4c23620b6ca8f6a1b2726945292136e37ab8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                
#include <unistd.h>

int
main(void)
{
	switch (fork()) {
	case -1:
		return -1;
	case 0:
		return 2;
	default:
		usleep(100000U);
		return 1;
	}
}