aboutsummaryrefslogtreecommitdiff
path: root/docs/code/cgi/tick.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/code/cgi/tick.c')
-rw-r--r--docs/code/cgi/tick.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/code/cgi/tick.c b/docs/code/cgi/tick.c
new file mode 100644
index 00000000..0b498edf
--- /dev/null
+++ b/docs/code/cgi/tick.c
@@ -0,0 +1,13 @@
+#include <stdio.h>
+#include <unistd.h>
+
+int main() {
+ int i;
+ for (i = 0; i < 10; i++) {
+ printf("tick\n");
+ fflush(stdout);
+ sleep(1);
+ }
+ printf("BOOM!\n");
+ return 0;
+}