mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-17 21:24:40 +10:00
main.py: setpgrp() to prevent suddent termination
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# Copyright (C) 2020-2022, Dhinak G, Mykola Grymalyuk
|
||||
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
import logging
|
||||
@@ -46,6 +47,9 @@ class OpenCoreLegacyPatcher:
|
||||
|
||||
self.constants.wxpython_variant: bool = True
|
||||
|
||||
# Ensure we live after parent process dies (ie. LaunchAgent)
|
||||
os.setpgrp()
|
||||
|
||||
# Generate OS data
|
||||
os_data = os_probe.OSProbe()
|
||||
self.constants.detected_os = os_data.detect_kernel_major()
|
||||
|
||||
Reference in New Issue
Block a user