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] |
On Tue, 15 Nov 2005, Konrad Eisele wrote:
When th cygwin bash window is closed by clicking on the window's close button the the appliaction gets killed without recieving a sigint or any atexit called. Is there a way to be able to run cleanup code when the application is about to be killed?
According to exceptions.cc, a SIGHUP will be sent to bash in this case. Are you handling the right signal?
BTW, the atexit() callback also should be called -- do you have a simple testcase to reproduce the problem? Igor
#include <stdio.h> void callback() { FILE *current;
current=fopen("test.txt","a"); fprintf(current,"atexit"); }
-- 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] |