home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / C / ROBOT01.ZIP / RCCL020 < prev    next >
Encoding:
Text File  |  1987-03-02  |  555 b   |  25 lines

  1. /*
  2.  * RCCL Version 1.0           Author :  Vincent Hayward
  3.  *                                      School of Electrical Engineering
  4.  *                                      Purdue University
  5.  *      Dir     : src
  6.  *      File    : clock.c
  7.  *      Remarks : This pg is only used by the FAKE version to generate
  8.  *                clock signals (it is forked).
  9.  *      Usage   : cc clock.c -o clock
  10.  */
  11.  
  12. #include <stdio.h>
  13.  
  14. #define SIGCLCK 16
  15. main()
  16. {
  17.     int ppid;
  18.  
  19.     ppid = getppid();
  20.     for (; ; ) {
  21.         nap(20);
  22.         kill(ppid,SIGCLCK);
  23.     }
  24. }
  25.