Explorar el Código

修复一个netcore2.1 linux或者mac上Manager进程无法启动子进程的bug

tanghai hace 7 años
padre
commit
c90d535d06
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Server/Model/Component/AppManagerComponent.cs

+ 1 - 1
Server/Model/Component/AppManagerComponent.cs

@@ -60,7 +60,7 @@ namespace ETModel
 			Log.Info($"{exe} {arguments}");
 			try
 			{
-				ProcessStartInfo info = new ProcessStartInfo { FileName = exe, Arguments = arguments, CreateNoWindow = true, UseShellExecute = true };
+				ProcessStartInfo info = new ProcessStartInfo { FileName = exe, Arguments = arguments, CreateNoWindow = true, UseShellExecute = false };
 
 				Process process = Process.Start(info);
 				this.processes.Add(startConfig.AppId, process);