delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/10/27/08:31:25

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: <n24vn0tt5b4nuoilg0bm9b3u0buqs8djta@4ax.com>
NNTP-Posting-Host: 100.red-80-34-252.pooles.rima-tde.net
Mime-Version: 1.0
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019