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