home *** CD-ROM | disk | FTP | other *** search
- /*
- * RCCL Version 1.0 Author : Vincent Hayward
- * School of Electrical Engineering
- * Purdue University
- * Dir : src
- * File : clock.c
- * Remarks : This pg is only used by the FAKE version to generate
- * clock signals (it is forked).
- * Usage : cc clock.c -o clock
- */
-
- #include <stdio.h>
-
- #define SIGCLCK 16
- main()
- {
- int ppid;
-
- ppid = getppid();
- for (; ; ) {
- nap(20);
- kill(ppid,SIGCLCK);
- }
- }
-