TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Paul Wankadia
from: andrew clarke
date: 1996-10-22 03:33:00
subject: using ctrlbrk() [or not]

07 Oct 96 17:16, Paul Wankadia wrote to andrew clarke:

 ac>>     signal(SIGINT, SIG_IGN);  /* initialise the SIGINT signal handler 
 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???

Yes, assuming you're running native DOS on an Intel PC and that by
"reset" you mean hit the reset switch.  :-)

Regards
Andrew

-- randy{at}zws.com

--- Msged/2 4.00
* Origin: Blizzard of Ozz, Melbourne, Australia (3:635/728.4{at}fidonet)
SEEN-BY: 50/99 620/243 623/630 635/503 544 727 728 670/218 711/409 410 413
SEEN-BY: 711/430 808 809 932 934 712/515 713/317 714/906 800/1
@PATH: 635/728 50/99 711/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™.