# HG changeset patch # User Jim Blandy # Date 680907862 0 # Node ID f756ede77561f20d0148a47379b2b57f3d9c50c2 # Parent cba0546ba47cc2ccc72e766562501059d6ca66ad entered into RCS diff -r cba0546ba47c -r f756ede77561 lib-src/=wakeup.c --- a/lib-src/=wakeup.c Tue Jul 30 08:53:37 1991 +0000 +++ b/lib-src/=wakeup.c Tue Jul 30 21:04:22 1991 +0000 @@ -18,6 +18,9 @@ while (1) { + /* Make sure wakeup stops when Emacs goes away. */ + if (getppid () == 1) + exit (0); printf ("Wake up!\n"); fflush (stdout); /* If using a period of 60, produce the output when the minute