comparison lib-src/=wakeup.c @ 366:f756ede77561

entered into RCS
author Jim Blandy <jimb@redhat.com>
date Tue, 30 Jul 1991 21:04:22 +0000
parents f2a4b896fcf4
children 44df7395bed8
comparison
equal deleted inserted replaced
365:cba0546ba47c 366:f756ede77561
16 if (argc > 1) 16 if (argc > 1)
17 period = atoi (argv[1]); 17 period = atoi (argv[1]);
18 18
19 while (1) 19 while (1)
20 { 20 {
21 /* Make sure wakeup stops when Emacs goes away. */
22 if (getppid () == 1)
23 exit (0);
21 printf ("Wake up!\n"); 24 printf ("Wake up!\n");
22 fflush (stdout); 25 fflush (stdout);
23 /* If using a period of 60, produce the output when the minute 26 /* If using a period of 60, produce the output when the minute
24 changes. */ 27 changes. */
25 if (period == 60) 28 if (period == 60)