Skip to content

Commit

Permalink
main.m: Don’t exit on parent process exit
Browse files Browse the repository at this point in the history
  • Loading branch information
khronokernel committed May 27, 2024
1 parent bff4c92 commit ce0d4ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OCLP-Helper/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

int main(int argc, const char * argv[]) {
@autoreleasepool {
// Ensure we don't exit on parent process exit
setpgid(0, 0);

NSApplication * app = [NSApplication sharedApplication];
Handler *h = [[Handler alloc] init];
[app setDelegate:h];
Expand Down

0 comments on commit ce0d4ec

Please sign in to comment.