From e7afae0bd9e5504abcc7e8e80b074aa9a22f6cf4 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Tue, 30 Jul 1991 21:04:22 +0000 Subject: entered into RCS --- lib-src/=wakeup.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib-src') 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 -- cgit v1.2.1