0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-26 21:53:54 +01:00

put player process in another session (they get killed by sigint)

This commit is contained in:
2025-09-10 19:44:52 +02:00
parent 683168991f
commit 501151d647

View File

@@ -91,7 +91,7 @@ class ProcessManager:
cmd.append(track_path)
proc = subprocess.Popen(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
proc = subprocess.Popen(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, start_new_session=True)
pr = Process(proc, track_path, time.time(), duration)
with self.lock: self.processes.append(pr)
return pr