Infinite Loops in CGI (Windows)?

Colin Brown cbrown at metservice.com
Mon May 27 16:14:59 EDT 2002


Hi Bjoern

I have used "pskill" (part of "pstools" from www.sysinternals.com) to kill
rogue system services.
It may or may not work for you.

os.system(r'c:\pstools\pskill PyApp > nul')

Colin Brown
PyNZ

"Bjoern" wrote in message
news:a5d863b1.0205270613.1c02cd2c at posting.google.com...
> Hello,
>
> out of curiosity I just tried putting an infinite Loop into a CGI
> Skript (served under Windows 2000 with Apache2).
>
> What suprised me a bit is that python kept on using 99% of the CPU,
> even after I stopped Apache. Also I couldn't stop the process from the
> Windows Task Manager, I only got 'Access denied' (I am Administrator).
>
> Is there any other way to clean up than rebooting the machine? Is
> there a way at all to make shared hosting feasible?
>
> Thanks
>
>
> Bjoern





More information about the Python-list mailing list