mirror of
https://github.com/tuna/tunasync.git
synced 2025-04-21 04:42:46 +00:00
setproctitle
This commit is contained in:
parent
658cf8336c
commit
091f151956
4
requirements.txt
Normal file
4
requirements.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
setproctitle==1.1.8
|
||||||
|
sh==1.09
|
||||||
|
toml==0.8.2
|
||||||
|
wsgiref==0.1.2
|
@ -2,12 +2,14 @@
|
|||||||
# -*- coding:utf-8 -*-
|
# -*- coding:utf-8 -*-
|
||||||
import sh
|
import sh
|
||||||
import sys
|
import sys
|
||||||
|
from setproctitle import setproctitle
|
||||||
import signal
|
import signal
|
||||||
import Queue
|
import Queue
|
||||||
|
|
||||||
|
|
||||||
def run_job(sema, child_q, manager_q, provider):
|
def run_job(sema, child_q, manager_q, provider):
|
||||||
aquired = False
|
aquired = False
|
||||||
|
setproctitle("tunasync-{}".format(provider.name))
|
||||||
|
|
||||||
def before_quit(*args):
|
def before_quit(*args):
|
||||||
provider.terminate()
|
provider.terminate()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user