1 2 3 4 5
#include <unistd.h> #include <sys/wait.h> int main(void) { for (;;) { wait(NULL); sleep(1); } }