httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabriel Petrovay <gabipetro...@gmail.com>
Subject [users@httpd] Clean shutdown on Windows
Date Mon, 25 Oct 2010 09:21:36 GMT
Hi,

I am using:
Server version: Apache/2.2.16 (Win32)
Server built:   Jul 30 2010 16:15:37
and also:
mod_fcgid (2.4.6)

I start Apache form console:
httpd.exe -f my_httpd_conf_file.conf

fcgid starts as expectedly my_fcgi.exe (written in C++) which performs
the logic of my requests. The problem is that at shutdown, some more
steps have to be performed by and my_fcgi.exe. When I press Ctrl-C in
the cmd where Apache was started, Apache gets it and simply kills my
my_fcgi.exe that was started. my_fcgi.exe also catches CTRL-C but at a
random time during it's shutdown logic, it's killed by Apache.

Is there a way to shutdown Apache properly in order to have a clean
shutdown or an un-initialize of the underlying processes?
Or, is there un-initialize handlers that modules like mod_fcgid have
such that I can peoperly showdown my-fcgi.exe?

Apache has to wait somehow until the Apache modules (mod_fcgi in this
case) are un-initialized. Probably I don't implement something in the
un-initialize process. Any hint are very appreciated.

Thanks!

-- 
MSc Gabriel Petrovay
Mobile: +41(0)787978034
www.28msec.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message