Updater: cleanup

This commit is contained in:
kaso17
2018-09-03 17:23:18 +02:00
parent 630f613721
commit 837e74a743

View File

@@ -96,9 +96,9 @@ namespace Jackett.Updater
{ {
var startInfo = new ProcessStartInfo(); var startInfo = new ProcessStartInfo();
startInfo.Arguments = "-15 " + pid; startInfo.Arguments = "-15 " + pid;
startInfo.FileName = "/bin/kill"; startInfo.FileName = "kill";
Process.Start(startInfo); Process.Start(startInfo);
System.Threading.Thread.Sleep(1000); // just sleep, WaitForExit() doesn't seem to work on mono/linux (returns immediantly). System.Threading.Thread.Sleep(1000); // just sleep, WaitForExit() doesn't seem to work on mono/linux (returns immediantly), https://bugzilla.xamarin.com/show_bug.cgi?id=51742
exited = proc.WaitForExit(2000); exited = proc.WaitForExit(2000);
} }
catch (Exception e) catch (Exception e)