473,387 Members | 1,485 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

CGI zombies with Apache 1.3 on Linux

I've Googled extensively, but can't figure out what might be causing my
Python CGI app to zombie (yes, Tibia, the one I just announced ;). The
cgi bit looks like this:
def cgi_handler():
import cgi

form = cgi.FieldStorage(keep_blank_values=True)
params = dict([(key, form[key].value) for key in form])

env = os.environ.get
filename = env('PATH_TRANSLATED') or env('SCRIPT_FILENAME')
username = env('AUTH_USER') or env('REMOTE_USER') or
env('LOGON_USER')
app = TibiaApp(params, filename, username)
print "Content-type: %s\n" % app.content_type
print "".join(app.output)
if __name__ == '__main__':
cgi_handler()

Should I be explicitly closing stdout at the end of cgi_handler()? I
don't get a zombie with every request.

Robert Brewer
MIS
Amor Ministries
fu******@amor.org
Jul 18 '05 #1
1 1449
Robert Brewer wrote:
I've Googled extensively, but can't figure out what might be causing my
Python CGI app to zombie (yes, Tibia, the one I just announced ;). The
cgi bit looks like this:


Zombies are caused by forking a subprocess and the parent not waiting on
it. Does your system (sometimes) spin off a subprocess?

--
Erik Max Francis && ma*@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Defeat is a school in which truth always grows strong.
-- Henry Ward Beecher
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: gwerk | last post by:
Hi, I've installed php4.0.4 on a linux machine running apache 1.3.19 but the php is not working properly. When I try to open a php doc all i get is the actual code - not the output eg. <? echo...
0
by: dave | last post by:
Hello, I'm really hoping someone can help here, i am very frustrated on this issue. If this were my linux box i'd commit myself for insanity, this setup is so frustrating! Ok, done rambling,...
2
by: digidalmation | last post by:
Hello all. I've been trying to get my linux server to run mod_python. It's a Mandrake 10 linux box, and apache/mod_python are installed from rpms. apache2-mod_python-2.0.48_3.1.3-1mdk...
2
by: Ste | last post by:
Hi all, with my old win2k server iis i had this file working, but with linux and apache i have a problem: http://delibere.onde.net/rimando.asp Any idea? Tks Ste
1
by: neha | last post by:
hi, i m trying to integrate python with apache on linux.For this i m using mod_python. I dont see any problem with the versions of python,apache and mod_python i m using. the versions i m using...
5
by: mariosp | last post by:
Hello, Thanks to all for your answers to my previous topic. I decide to install and configure both services on the same 2003 Server. Is that possible or I will crash it? Thanks again. ...
3
by: madunix | last post by:
My Server is suffering bad lag (High Utlization) I am running on that server Oracle10g with apache_1.3.35/ php-4.4.2 Web visitors retrieve data from the web by php calls through oci cobnnection...
0
by: phil469 | last post by:
I'm having an issue when trying to read a file in a user's homedir from a cgi script. I have a virtual host section in my httpd.conf file which I'll include. The cgi script is a very basic script...
0
by: sebor | last post by:
October 29, 2007 -- The Apache C++ Standard Library project is pleased to announce that the official stdcxx 4.2.0 release is now available for download from the following location:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.