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













                          
#include <unistd.h>

int
main(void)
{
	switch (vfork()) {
	case -1:
		return -1;
	case 0:
		_exit(2);
	default:
		return 1;
	}
}