in reply to CGI just won't die...

Another new development... When I switch the server to use perlis.dll rather than perl.exe to handle perl scripts, it terminates correctly just as it does when run from a command line on the server.

However, I can't use perlis.dll because ISAPI doesn't pass enough information to my scripts as CGI does($ENV{'REMOTE_USER'} is critical to me). Anyone have any ideas based on this new information?

Another thing worth noting is that this does not happen all the time, just most of the time. About 20% of the time the process will terminate normally, it's the other 80% that it hangs. It's not spiking the CPU on the server, the process just hangs there using 0% CPU until the server timeout hits.