delorie.com/archives/browse.cgi | search |
Xref: | news2.mv.net comp.os.msdos.djgpp:7241 |
From: | jpg AT wave DOT co DOT nz (Jon) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: interrupting with ctrl-C |
Date: | Wed, 14 Aug 1996 09:16:30 GMT |
Organization: | Wave Internet Services |
Lines: | 14 |
Message-ID: | <jpg.10.3211996D@wave.co.nz> |
References: | <4un5jr$9li AT due DOT unit DOT no> |
NNTP-Posting-Host: | wh6008.wave.co.nz |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
In article <4un5jr$9li AT due DOT unit DOT no> jacobsen AT kjemi DOT unit DOT no (Elling Jacobsen) writes: > Is there any way to >ensure that all data records are written to file at >interrupt? You could install a signal handler for SIGINT which is generated when you press ctrl-c. In your signal handler you can close the files etc. look up the functions signal() or sigaction() in info, or email me and i'll point you to some example code. Cheers, Jon.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |