add while True
This commit is contained in:
parent
0a0b14f065
commit
38a7ada447
3
main.py
3
main.py
@ -1,6 +1,7 @@
|
||||
#import os
|
||||
#always use absolute paths
|
||||
import os
|
||||
import time
|
||||
|
||||
#get pid
|
||||
pid = os.getpid()
|
||||
@ -9,3 +10,5 @@ pid = os.getpid()
|
||||
with open('/tmp/battleship_server.pid', 'w') as f:
|
||||
f.write(str(pid))
|
||||
print('Hello my(battleship_server) pid is ' + str(pid))
|
||||
while True:
|
||||
time.sleep(1)
|
Loading…
Reference in New Issue
Block a user