1 #include <stdio.h> 2 #include <unistd.h> 3 main(int argc,char const * argv[])4int main(int argc, char const *argv[]) { 5 lldb_enable_attach(); 6 7 if (argc >= 2) { 8 // Create the synchronization token. 9 FILE *f = fopen(argv[1], "wx"); 10 if (!f) 11 return 1; 12 fputs("\n", f); 13 fflush(f); 14 fclose(f); 15 } 16 17 printf("pid = %i\n", getpid()); 18 sleep(10); 19 return 0; // breakpoint 1 20 } 21