WaitForExit增加超时
This commit is contained in:
parent
7488e9522f
commit
f84b9e5af8
@ -36,7 +36,7 @@ namespace FastGithub.Dns
|
|||||||
{
|
{
|
||||||
var proess = Process.GetProcessById(pid);
|
var proess = Process.GetProcessById(pid);
|
||||||
proess.Kill();
|
proess.Kill();
|
||||||
proess.WaitForExit();
|
proess.WaitForExit(1000);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch (ArgumentException)
|
catch (ArgumentException)
|
||||||
|
|||||||
@ -36,7 +36,7 @@ namespace FastGithub.ReverseProxy
|
|||||||
{
|
{
|
||||||
var proess = Process.GetProcessById(pid);
|
var proess = Process.GetProcessById(pid);
|
||||||
proess.Kill();
|
proess.Kill();
|
||||||
proess.WaitForExit();
|
proess.WaitForExit(1000);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch (ArgumentException)
|
catch (ArgumentException)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user