mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 07:35:27 +03:00
Switch to forkserver
This commit is contained in:
parent
e10b330b04
commit
54a1b3bb15
@ -0,0 +1,4 @@
|
||||
from .app import FrigateApp
|
||||
from .config import FrigateConfig
|
||||
|
||||
__all__ = ["FrigateApp", "FrigateConfig"]
|
||||
@ -1,13 +1,13 @@
|
||||
import argparse
|
||||
import faulthandler
|
||||
import multiprocessing as mp
|
||||
import signal
|
||||
import sys
|
||||
import threading
|
||||
|
||||
from pydantic import ValidationError
|
||||
|
||||
from frigate.app import FrigateApp
|
||||
from frigate.config import FrigateConfig
|
||||
from frigate import FrigateApp, FrigateConfig
|
||||
from frigate.log import setup_logging
|
||||
|
||||
|
||||
@ -22,6 +22,10 @@ def main() -> None:
|
||||
# Make sure we exit cleanly on SIGTERM.
|
||||
signal.signal(signal.SIGTERM, lambda sig, frame: sys.exit())
|
||||
|
||||
# Switch multiprocessing start method to forkserver (the default as of python 3.14).
|
||||
mp.set_start_method("forkserver", force=True)
|
||||
mp.set_forkserver_preload(["frigate"])
|
||||
|
||||
# Parse the cli arguments.
|
||||
parser = argparse.ArgumentParser(
|
||||
prog="Frigate",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user