Fixed an error in Windows version that put pid files in the wrong location (how come a Windows user didn't notice this one before?)
This commit is contained in:
parent
94b8532f59
commit
1c298951d6
2 changed files with 6 additions and 8 deletions
|
|
@ -535,6 +535,6 @@ ServerConfig.objects.conf("server_starting_mode", delete=True)
|
|||
|
||||
if os.name == 'nt':
|
||||
# Windows only: Set PID file manually
|
||||
with open(os.path.join(settings.GAME_DIR, 'server.pid'), 'w') as f:
|
||||
with open(SERVER_PIDFILE, 'w') as f:
|
||||
f.write(str(os.getpid()))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue