Make evennia -i block until process is closed. Fixes #803.

This commit is contained in:
Greg Taylor 2015-09-07 14:35:24 -07:00 committed by Griatch
parent 538228af04
commit a9480f9f64

View file

@ -1033,7 +1033,9 @@ def server_operation(mode, service, interactive, profiler):
GAMEDIR, TWISTED_BINARY, SERVER_LOGFILE,
PORTAL_LOGFILE, HTTP_LOGFILE])
# start the server
Popen(cmdstr, env=getenv())
process = Popen(cmdstr, env=getenv())
if interactive:
process.wait()
elif mode == 'reload':
# restarting services