]> git.saurik.com Git - apple/xnu.git/blob - tests/stackshot_translated_child.c
xnu-7195.101.1.tar.gz
[apple/xnu.git] / tests / stackshot_translated_child.c
1 #include <unistd.h>
2 #include <os/assumes.h>
3 #include <signal.h>
4
5 int
6 main()
7 {
8 // Always signal parent to unblock them
9 kill(getppid(), SIGUSR1);
10
11 #if !defined(__x86_64__)
12 os_crash("translated child not running as x86_64");
13 #endif
14 sleep(100);
15 return 0;
16 }