Fix condition.
MODIFY
WalletWasabi.Tests/UnitTests/Tor/TorSettingsTests.cs
WalletWasabi.Tests/UnitTests/Tor/TorSettingsTests.cs
@@ -17,7 +17,7 @@ namespace WalletWasabi.Tests.UnitTests.Tor
string logFilePath = Path.Combine("temp", "Tor.log");
string distributionFolder = "tempDistributionDir";
- TorSettings settings = new(dataDir, logFilePath, distributionFolder, terminateOnExit: false, owningProcessId: 7);
+ TorSettings settings = new(dataDir, logFilePath, distributionFolder, terminateOnExit: true, owningProcessId: 7);
IPEndPoint endpoint = new(IPAddress.Loopback, WalletWasabi.Helpers.Constants.DefaultTorSocksPort);
string arguments = settings.GetCmdArguments(endpoint);

MODIFY
WalletWasabi/Tor/TorSettings.cs
WalletWasabi/Tor/TorSettings.cs
@@ -86,7 +86,7 @@ namespace WalletWasabi.Tor
$"--Log \"notice file {LogFilePath}\""
};
- if (OwningProcessId is not null)
+ if (TerminateOnExit && OwningProcessId is not null)
{
arguments.Add($"__OwningControllerProcess {OwningProcessId}");
}

Fix condition.