summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1991-07-30 21:04:22 +0000
committerJim Blandy <jimb@redhat.com>1991-07-30 21:04:22 +0000
commite7afae0bd9e5504abcc7e8e80b074aa9a22f6cf4 (patch)
treee55233895a1df1ee6d8d5688c9736ba7f77ec1dd /lib-src
parent9b7fb5bda2ada556d6718d5dba00c24cad46312b (diff)
downloademacs-e7afae0bd9e5504abcc7e8e80b074aa9a22f6cf4.tar.gz
entered into RCS
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/=wakeup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib-src/=wakeup.c b/lib-src/=wakeup.c
index 61ad4401d1f..eb3dd72c95c 100644
--- a/lib-src/=wakeup.c
+++ b/lib-src/=wakeup.c
@@ -18,6 +18,9 @@ main (argc, argv)
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