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