From ec5d5a573802307ac995323704f36ca1c40e8508 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Mon, 24 Sep 2007 17:47:04 +0200 Subject: [PATCH] Use spawnlp instead of system to start process. --- main.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.py b/main.py index dfc0e25..5307976 100644 --- a/main.py +++ b/main.py @@ -132,9 +132,7 @@ class Window(QDialog): self.switchToWindow(index) else: cmd = unicode(self._lineEdit.text()) - if os.fork() == 0: - os.system(cmd) - sys.exit(0) + os.spawnlp(os.P_NOWAIT, 'sh', 'sh', '-c', cmd) self.close() -- 2.11.4.GIT