mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 07:35:27 +03:00
Remove no longer used util.listen function
py-spy dump --pid <pid> makes for a nice alternative we don't have to maintain. Plus it can show local variables.
This commit is contained in:
parent
3987d09550
commit
2e432601b6
@ -7,7 +7,6 @@ import os
|
|||||||
import re
|
import re
|
||||||
import signal
|
import signal
|
||||||
import subprocess as sp
|
import subprocess as sp
|
||||||
import traceback
|
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
import cv2
|
import cv2
|
||||||
@ -36,14 +35,6 @@ def restart_frigate():
|
|||||||
os.kill(os.getpid(), signal.SIGINT)
|
os.kill(os.getpid(), signal.SIGINT)
|
||||||
|
|
||||||
|
|
||||||
def print_stack(sig, frame):
|
|
||||||
traceback.print_stack(frame)
|
|
||||||
|
|
||||||
|
|
||||||
def listen():
|
|
||||||
signal.signal(signal.SIGUSR1, print_stack)
|
|
||||||
|
|
||||||
|
|
||||||
def get_cgroups_version() -> str:
|
def get_cgroups_version() -> str:
|
||||||
"""Determine what version of cgroups is enabled."""
|
"""Determine what version of cgroups is enabled."""
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user