Memory leak when spawning

jurgen.defurne at philips.com jurgen.defurne at philips.com
Thu Feb 15 09:08:36 EST 2001


Allright, I think this should definitely be the smallest program I can come
up with. I tested it, memory leaks like a rocket going up.

#

# External modules
import os
import sys

from time import *

if len(sys.argv) == 1:
    while 1:
	# Doesn't matter if P_NOWAIT or P_DETACH, tried 'em both
	os.spawnl(os.P_DETACH, 'd:\\python20\\python', 'python', 'cron.py', 'check')
elif sys.argv[1] == 'check':
    pass



Jurgen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cron.py
Type: application/octet-stream
Size: 288 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20010215/30ca414c/attachment.obj>


More information about the Python-list mailing list