diff options
| author | Jim Blandy | 1991-07-30 21:04:22 +0000 |
|---|---|---|
| committer | Jim Blandy | 1991-07-30 21:04:22 +0000 |
| commit | 7fb0d26fff30c25a95db79872d15f7f13d7997db (patch) | |
| tree | c2066937a33b536663434a5c828b197c7f9628ea | |
| parent | 92d97f2c7bbd2e0e944c8bdfb7b894a2832c3cfd (diff) | |
| download | emacs-7fb0d26fff30c25a95db79872d15f7f13d7997db.tar.gz emacs-7fb0d26fff30c25a95db79872d15f7f13d7997db.zip | |
entered into RCS
| -rw-r--r-- | lib-src/wakeup.c | 3 |
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) | |||
| 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 |