xref: /llvm-project/lldb/test/API/tools/lldb-server/attach-wait/main.cpp (revision 82ba3f44657ac91b4bef95dbf647dfbab482e502)
1 #include <thread>
2 #include <fstream>
3 
main(int argc,char * argv[])4 int main(int argc, char *argv[])
5 {
6   if (argc >= 2) {
7     std::ofstream(argv[1]).close();
8   }
9   // Wait to be attached.
10   std::this_thread::sleep_for(std::chrono::minutes(1));
11   return 0;
12 }
13