deskbar-applet r2262 - in trunk: . deskbar/handlers
- From: sebp svn gnome org
- To: svn-commits-list gnome org
- Subject: deskbar-applet r2262 - in trunk: . deskbar/handlers
- Date: Tue, 22 Jul 2008 22:16:43 +0000 (UTC)
Author: sebp
Date: Tue Jul 22 22:16:43 2008
New Revision: 2262
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2262&view=rev
Log:
When retrieving tomboy version wait until the process exited to avoid zombie process.
Modified:
trunk/ChangeLog
trunk/deskbar/handlers/tomboy.py
Modified: trunk/deskbar/handlers/tomboy.py
==============================================================================
--- trunk/deskbar/handlers/tomboy.py (original)
+++ trunk/deskbar/handlers/tomboy.py Tue Jul 22 22:16:43 2008
@@ -246,8 +246,10 @@
# this module isn't enabled.
def get_tomboy_version():
try:
- command = subprocess.Popen("tomboy --version", shell=True,
- stdout=subprocess.PIPE).stdout
+ process = subprocess.Popen("tomboy --version", shell=True,
+ stdout=subprocess.PIPE)
+ process.wait()
+ command = process.stdout
read = command.read()
command.close()
except OSError, e:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]