dialog fixes, replace fork with spawn

svn: r6226
This commit is contained in:
Don Allingham
2006-03-29 22:51:27 +00:00
parent 9d13b0783d
commit 071ae0ac9a
10 changed files with 152 additions and 520 deletions

View File

@@ -127,9 +127,7 @@ def run_thumbnailer(mtype, frm, to, size=const.thumbScale):
if cmd and enable:
cmdlist = map(lambda x: sublist.get(x,x),cmd.split())
if os.fork() == 0:
os.execvp(cmdlist[0],cmdlist)
os.wait()
os.spawnvpe(os.P_WAIT, cmdlist[0], cmdlist, os.environ)
return True
else:
return False