TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: andrew clarke
from: Paul Wankadia
date: 1996-10-07 17:16:32
subject: using ctrlbrk() [or not]

On 04 Oct 96, andrew clarke wrote to Paul Wankadia --



 > When I change the Ctrl-Break handler using ctrlbrk(), is there any

 ac> I don't even know what ctrlbrk() is (presumably something specific to

 ac> Borland's compilers?), but I can solve your problem with standard C



Oops...  Yet another screw-up on my part... <:(



 ac>     signal(SIGINT, SIG_IGN);  /* initialise the SIGINT signal handler to

 ac>     while (1)                 /* infinite loop */

 ac>         printf("The universe is neverending.\n");

 ac>     return 0;                 /* due to the above infinite loop, this



So if you get the handler to ignore the Ctrl-Break signal, then that means

that a reset will be required in order to "exit" this program???



Chow.



Junyer Hakker.



--- PPoint 2.00

* Origin: Junyer's Workshop (3:640/772.3)
SEEN-BY: 50/99 620/243 623/630 640/201 206 216 217 222 230 238 254 297 305
SEEN-BY: 640/309 370 375 386 531 535 547 739 750 772 773 820 821 822 823 890
SEEN-BY: 640/895 690/660 711/409 410 413 430 808 809 932 934 712/515 713/888
SEEN-BY: 714/906 800/1
@PATH: 640/772 531 201 820 711/409 808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.