Mail Archives: djgpp/1998/01/28/09:00:31
From: | "Jerry van Dijk" <jvandyk AT ibm DOT net>
|
Subject: | ctrl-c handling question
|
Newsgroups: | comp.os.msdos.djgpp
|
Organization: | Ordina Finance
|
Message-ID: | <01bd2bf2$0f2058a0$542c5c8b@aptiva>
|
NNTP-Posting-Host: | 139.92.44.84
|
Date: | 28 Jan 98 13:36:53 GMT
|
Lines: | 33
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
When running the following program:
int main(void)
{
int i;
i = 5;
while (i == 5) {
;
}
return 0;
}
pressing CTRL-C will abort it.
However, when running the following program:
int main(void)
{
while (1) {
}
}
pressing CTRL-C has no effect.
Anyone have any idea as to the cause and how to get around it ?
--
-- Jerry van Dijk | Leiden, Holland
-- Team Ada | email: jdijk AT acm DOT org
- Raw text -