Link to home
Start Free TrialLog in
Avatar of SilentRage
SilentRage

asked on

Unable to terminate perl

I run apache on my Win2k operating system.  When a perl CGI is executed, and perl locks up, how do I terminate that process?  Usually the locked up perl doesn't take any processing time, but just yesterday I had executed the CGI twice and had infinite loops.  In the tasklist I saw that each one was using 50 percent of my CPU, and really lagging me bad.  I tried to terminate them, but I got a access denied error.  I tried shutting down apache, but the perl processes were still there.  Each one had a process name of "perl.exe" and there were no other perl related processes.

I ended up having to reboot - which isn't good since I host other services as well including IRC where the people are usually active.
Avatar of SilentRage
SilentRage

ASKER

I've finally found my answer.  I don't know how to get perl to terminate itself, but I did find out how to terminate processes that you ordinarily wouldn't have permission to terminate.

http://www.microsoft.com/msj/defaultframe.asp?page=/msj/0398/win320398.htm&nav=/msj/0398/newnav.htm

Great article.  They provided some code for a small program in C.  I copied it, compiled it, and slapped those dead perl processes into... well, hell.  That's it, they're in hell.  Good grief they've given me enough hell they deserved a taste.
Since you had to find the answer for this on yourself, you should go to Community Support and request a moderate refund your points to you.
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial