Home | History | Annotate | Download | only in process_attach
      1 #include <stdio.h>
      2 #include <unistd.h>
      3 
      4 int main(int argc, char const *argv[]) {
      5     // Waiting to be attached by the debugger.
      6     int temp = 0;
      7     while (temp < 30) // Waiting to be attached...
      8     {
      9         sleep(1);
     10         temp++;
     11     }
     12 
     13     printf("Exiting now\n");
     14 }
     15