Merge pull request #441 from wraithan/797886

fix clean_redis command (bug 797886)
This commit is contained in:
Chris McDonald 2012-10-04 16:28:36 -07:00
Родитель 08c1ca9e5d 8b738dc87e
Коммит a3a0eb8f67
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -47,9 +47,10 @@ def vacuum(master, slave):
tmp.close()
# It's hard to get Python to clean up the memory from slave.keys(), so
# we'll let the OS do it. argv[0] is a dummy argument, the rest get passed
# like a normal command line.
os.execl(sys.executable, 'argv[0]', sys.argv[0], sys.argv[1], tmp.name)
# we'll let the OS do it. You have to pass sys.executable both as the
# thing to run and so argv[0] is set properly.
os.execl(sys.executable, sys.executable, sys.argv[0],
sys.argv[1], tmp.name)
def cleanup(master, slave, filename):