diff options
author | itojun <itojun@pkgsrc.org> | 2001-07-19 20:29:08 +0000 |
---|---|---|
committer | itojun <itojun@pkgsrc.org> | 2001-07-19 20:29:08 +0000 |
commit | 342f418a3ac28ae57ca1ff09ca81aeb9fd066251 (patch) | |
tree | 549f6601edd418beb3292cd9a0a7fe78a9843ba1 /sysutils | |
parent | 807d414c81c9f59282d5a857f6aa38d60117e1ca (diff) | |
download | pkgsrc-342f418a3ac28ae57ca1ff09ca81aeb9fd066251.tar.gz |
forgot to monitor shutdown button on morse code mode
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/lambd/files/lambd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sysutils/lambd/files/lambd.c b/sysutils/lambd/files/lambd.c index 1d92903a711..6ebd756469b 100644 --- a/sysutils/lambd/files/lambd.c +++ b/sysutils/lambd/files/lambd.c @@ -1,4 +1,4 @@ -/* $NetBSD: lambd.c,v 1.3 2001/07/19 20:23:43 itojun Exp $ */ +/* $NetBSD: lambd.c,v 1.4 2001/07/19 20:29:08 itojun Exp $ */ /* * Copyright (C) 2001 WIDE Project. All rights reserved. @@ -291,6 +291,9 @@ morse() unsigned long t = delay / 10; for (p = morsestr; *p; p++) { + if (monitor()) + return 1; + if (isdigit(*p)) q = digit[*p - '0']; else if (isalpha(*p) && isupper(*p)) |