Forum Moderators: phranque

Message Too Old, No Replies

C++ via CGI: how to set ignore user abort() ?

         

tition

8:44 pm on Aug 11, 2011 (gmt 0)

10+ Year Member



Dear all,

I am a total newbie with the apache server.

I have a C++ application that gets input via GET and POST and produces .html. My program is hooked up via


#file:httpd.conf
ScriptAlias /cgi-bin/ /home/myprojectname/trunk/Debug

AddHandler cgi-script .cgi .pl .exe


The C++ program is a simple console application residing in the /home/myprojectname/trunk/Debug directory.

Everything works like a charm, except for one thing. On a specific user input, the program creates a large set of files, which takes a long time (as the files are large). If, in the meantime, the user presses the browser stop button, my program aborts having done the files halfway.

I need to ignore the user's pressing of the stop button.

I read lots of post how to do this using php. However, I am using C++ and a console application. What should I do?

Thanks for your help!