mirror of
https://github.com/tuna/tunasync.git
synced 2025-04-20 20:22: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 -*-
|
||||
import sh
|
||||
import sys
|
||||
from setproctitle import setproctitle
|
||||
import signal
|
||||
import Queue
|
||||
|
||||
|
||||
def run_job(sema, child_q, manager_q, provider):
|
||||
aquired = False
|
||||
setproctitle("tunasync-{}".format(provider.name))
|
||||
|
||||
def before_quit(*args):
|
||||
provider.terminate()
|
||||
|
Loading…
x
Reference in New Issue
Block a user