22 lines · c
1#include <stdio.h>2#include <unistd.h>3#include <string.h>4 5void6call_me()7{8 sleep(1);9}10 11int12main (int argc, char **argv)13{14 printf ("Hello there!\n"); // Set break point at this line.15 if (argc == 2 && strcmp(argv[1], "keep_waiting") == 0)16 while (1)17 {18 call_me();19 }20 return 0;21}22