From 0295bc8b1b7bb718764a64a3b1d84d31df4e9a37 Mon Sep 17 00:00:00 2001 From: Brandon Evans Date: Tue, 12 Jan 2021 20:51:00 -0700 Subject: [PATCH] Stop aria2c if Xcodes stops I removed this because I thought it wasn't necessary for some reason. We do send a SIGTERM if the user cancels the installation (via subscription cancellation), but if the whole app quits aria2c would keep running in the background. --- Xcodes/Backend/Environment.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Xcodes/Backend/Environment.swift b/Xcodes/Backend/Environment.swift index d444794..d403faa 100644 --- a/Xcodes/Backend/Environment.swift +++ b/Xcodes/Backend/Environment.swift @@ -43,6 +43,7 @@ public struct Shell { "--max-connection-per-server=16", "--split=16", "--summary-interval=1", + "--stop-with-process=\(ProcessInfo.processInfo.processIdentifier)", "--dir=\(destination.parent.string)", "--out=\(destination.basename())", url.absoluteString,