CGI executed 2 times when form is posted
I have a CGI that executes properly on Red Hat 8.0 using Apache 2.0.40.
However, that same CGI on Red Hat Enterprise executes twice each time the form is submitted. I have tried 2 different versions of Apache with no difference. The CGI is written in C and call the execl() function. When I check the Apache access_log, it shows that the CGI was called two times in rapid succession. I added some code to capture the process ID of the parent and write that to a file called /tmp/test[ppid] where ppid is the parent process ID. There are always 2 files with different process ID created.
Anyone had a similar issue? I am almost convinced that it is not an Apache issue, but rather something that is happening at the Operating System level.
|