1 #include <chrono> 2 #include <stdio.h> 3 #include <thread> 4 5 using std::chrono::seconds; 6 main(int argc,char const * argv[])7int main(int argc, char const *argv[]) { 8 lldb_enable_attach(); 9 10 // Create the synchronization token. 11 FILE *f; 12 if (f = fopen(argv[1], "wx")) { 13 fputs("\n", f); 14 fflush(f); 15 fclose(f); 16 } else 17 return 1; 18 19 while (true) { 20 std::this_thread::sleep_for(seconds(1)); 21 } 22 23 return 0; 24 } 25