1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/* * vim:ts=4:sw=4:expandtab * */ #include <stdlib.h> #include <stdio.h> #include <unistd.h> void monitor() { printf("monitor started\n"); for (;;) { } } void monitor_cleanup() { printf("monitor cleanup\n"); _exit(EXIT_SUCCESS); }