xref: /xnu-10002.1.13/tests/stackshot_translated_child.c (revision 1031c584a5e37aff177559b9f69dbd3c8c3fd30a)
1*1031c584SApple OSS Distributions #include <unistd.h>
2*1031c584SApple OSS Distributions #include <os/assumes.h>
3*1031c584SApple OSS Distributions #include <signal.h>
4*1031c584SApple OSS Distributions 
5*1031c584SApple OSS Distributions int
main()6*1031c584SApple OSS Distributions main()
7*1031c584SApple OSS Distributions {
8*1031c584SApple OSS Distributions 	// Always signal parent to unblock them
9*1031c584SApple OSS Distributions 	kill(getppid(), SIGUSR1);
10*1031c584SApple OSS Distributions 
11*1031c584SApple OSS Distributions #if !defined(__x86_64__)
12*1031c584SApple OSS Distributions 	os_crash("translated child not running as x86_64");
13*1031c584SApple OSS Distributions #endif
14*1031c584SApple OSS Distributions 	sleep(100);
15*1031c584SApple OSS Distributions 	return 0;
16*1031c584SApple OSS Distributions }
17