Give players and server process titles (in theory)
This commit is contained in:
parent
536bc25b6e
commit
331649e85c
2 changed files with 9 additions and 1 deletions
|
@ -237,7 +237,9 @@ class Player():
|
||||||
|
|
||||||
def __init__(self, channel, in_q, out_q):
|
def __init__(self, channel, in_q, out_q):
|
||||||
|
|
||||||
setproctitle.setproctitle("BAPSicle - Player " + str(channel))
|
process_title = "Player: Channel " + str(channel)
|
||||||
|
setproctitle.setproctitle(process_title)
|
||||||
|
multiprocessing.current_process().name = process_title
|
||||||
|
|
||||||
self.running = True
|
self.running = True
|
||||||
self.out_q = out_q
|
self.out_q = out_q
|
||||||
|
|
|
@ -9,7 +9,13 @@ setproctitle.setproctitle("BAPSicle - Server")
|
||||||
|
|
||||||
|
|
||||||
class BAPSicleServer():
|
class BAPSicleServer():
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
||||||
|
process_title = "Server"
|
||||||
|
setproctitle.setproctitle(process_title)
|
||||||
|
multiprocessing.current_process().name = process_title
|
||||||
|
|
||||||
startServer()
|
startServer()
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
|
|
Loading…
Reference in a new issue