Mail Archives: djgpp/1999/04/23/06:35:42
From: | Alberto Chessa <achessa AT fiar DOT finmeccanica DOT it>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | kbhit() and SIGALRM
|
Date: | Fri, 23 Apr 1999 12:17:46 +0200
|
Organization: | TISCALI S.p.A.
|
Lines: | 23
|
Message-ID: | <372048CA.39306E43@fiar.finmeccanica.it>
|
NNTP-Posting-Host: | mi2-405.tiscalinet.it
|
Mime-Version: | 1.0
|
X-Mailer: | Mozilla 4.5 [en] (Win95; I)
|
X-Accept-Language: | en
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Hello,
Has kbhit() problem when interrupted by SIGALRM (generated with
setitimer(), not with alarm()) ? It seem to hang-on and simple never
return. It could be a bug of my program or there are known problems on
kbhit() ?
(I know, the signal delivering is delayed during DOS system call. That's
why I'm using a kbhit() based loop instead of a getch()).
Note:
- Running under Win95 DOS Box (I know, uclock() could fail under Win95).
- DJGPP v2.02
- setitimer() patched as suggested me by Eli Zaretskii (BTW, thanks for
the code)
Thanks in advance,
Alberto.
p.s.: I can post a detailed problem report if required
- Raw text -