Path: utzoo!mnetor!uunet!husc6!cmcl2!nrl-cmf!ames!pasteur!agate!aurora!labrea!decwrl!pyramid!prls!philabs!ttidca!clark From: clark@ttidca.TTI.COM (Ralph Clark) Newsgroups: comp.os.minix Subject: Rip VanWinkle simulator Message-ID: <2135@ttidca.TTI.COM> Date: 21 Mar 88 04:36:34 GMT Reply-To: clark@ttidca.tti.com (Ralph Clark) Organization: Citicorp/TTI, Santa Monica Lines: 29 Keywords: sleep forever /* vanwinkle.c - compile with cc -o vanwinkle vanwinkle.c * * For the benefit of those abroad, Rip VanWinkle was an early American * who fell asleep for twenty years. * * The author of this example is a current American who stayed awake for many * hours trying to use Fred Fish's dbug library, which uses sleep(maybe_0); */ #include main() { printf("Rip is going to sleep now.\n\n"); printf("While Rip rests, he dreams that Andy will choose either\n"); printf("sleep() or alarm() and post an official patch.\n\n"); printf("See you in twenty years.\nZzzzzzzzzzzzzzzzzzzzzzzzzzzzz\n"); fflush(stdout); sleep(0); printf("Rip woke up!!! You must have changed sleep() or alarm()!\n"); fflush(stdout); exit(0); }