| 1 | #include <stdio.h> |
|---|---|
| 2 | #include <thread> |
| 3 | #include <unistd.h> |
| 4 | |
| 5 | static void print_pid() { fprintf(stderr, format: "PID: %d\n", getpid()); } |
| 6 | |
| 7 | static void sleep() { std::this_thread::sleep_for(rtime: std::chrono::seconds(10)); } |
| 8 | |
| 9 | int main(int argc, char **argv) { |
| 10 | print_pid(); |
| 11 | puts(s: "break here\n"); |
| 12 | sleep(); |
| 13 | return 0; |
| 14 | } |
| 15 |
