Possible fix for process leak. Tx Alan Danziger.
Downloaded from:
http://web.archive.org/web/
20040416223252/http://www.aaronsw.com/2002/rss2email/rss2email-2.24.py
list
delete n
"""
-__version__ = "2.23"
+__version__ = "2.24"
__author__ = "Aaron Swartz (me@aaronsw.com)"
__copyright__ = "(C) 2004 Aaron Swartz. GNU GPL 2."
___contributors__ = ["Dean Jackson (dino@grorg.org)",
QP_REQUIRED = 0
def send(fr, to, message):
- os.popen2(["/usr/sbin/sendmail", to])[0].write(message)
+ i, o = os.popen2(["/usr/sbin/sendmail", to])
+ i.write(message)
+ i.close(); o.close()
+ del i, o
# def send(fr, to, message):
# import smtplib