This commit is contained in:
Bruno Rybársky 2022-01-18 14:33:53 +01:00
parent 0ade4aa5db
commit d94e2ff026

10
main.py Normal file

@ -0,0 +1,10 @@
#import os
import os
#get pid
pid = os.getpid()
#write pid to file /tmp/battleship_server.pid
with open('/tmp/battleship_server.pid', 'w') as f:
f.write(str(pid))
print('battleship_server PID: ' + str(pid))