X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: rafael-_no-spam_- AT _-please-_geninfor DOT com Newsgroups: comp.os.msdos.djgpp Subject: detecting process termination Date: Wed, 27 Oct 2004 14:18:12 +0200 Organization: Telefonica Data Espagna Lines: 9 Message-ID: NNTP-Posting-Host: 100.red-80-34-252.pooles.rima-tde.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: nsnmrro2-gest.nuria.telefonica-data.net 1098879660 17015 80.34.252.100 (27 Oct 2004 12:21:00 GMT) X-Complaints-To: usenet AT nsnmrro2-gest DOT nuria DOT telefonica-data DOT net NNTP-Posting-Date: Wed, 27 Oct 2004 12:21:00 +0000 (UTC) X-Newsreader: Forte Free Agent 2.0/32.652 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I would like to detect when the user clic on the X button to close the process in which is running my program under Windows. I thought it could be possible using signal() but I see SIGKILL and SIGTERM are "currently unused". żIs there any chance to know the program end is coming? Thanks