Skip to content

Commit

Permalink
multiprocessing: make sure child processes is killed when parent stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-chan-nya committed May 3, 2023
1 parent b7fff21 commit a90ab49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions usr/lib/yuki-iptv/yuki-iptv.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ def save_tvguide_sets():
epg_thread_2 = get_context("spawn").Process(
name="[yuki-iptv] save_epg_cache",
target=save_epg_cache,
daemon=True,
args=(
tvguide_sets,
settings,
Expand Down Expand Up @@ -5324,6 +5325,7 @@ def gen_chans():
channel_logos_process = get_context("spawn").Process(
name="[yuki-iptv] channel_logos_worker",
target=channel_logos_worker,
daemon=True,
args=(
channel_logos_request,
multiprocessing_manager_dict,
Expand Down

0 comments on commit a90ab49

Please sign in to comment.