This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How can I detect cygwin windows closing


Hi,

Wilfried Fauvel, le Wed 15 Feb 2006 18:18:49 +0100, a écrit :
> I have made a console apps, and I would like to know if it's possible to detect when the user click on the 'X' of the term window ?
> I am catching SIGINT, SIGTERM and SIGKILL signals, but it does not seen to be enough.

See SetConsoleCtrlHandler() and friends. I however never found a way to
avoid being killed anyway, even by trying to detach from the console.

Regards,
Samuel

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]