fix недоделки с одиночным запуском. стояла ожидающая команда. v++

This commit is contained in:
2024-04-03 00:01:52 +03:00
parent 48f7845564
commit c40d6fbbfc
6 changed files with 15 additions and 47 deletions

View File

@@ -16,7 +16,7 @@ public class ServerRunSupervisor extends RemoteTaskSupervisor<RunTask> {
String res = "./run";
String env = String.join(" ", Current.getRunConfiguration().getEnvList());
if (!env.isEmpty()) res = env + " " + res;
pass.user.connection.performScript(getRemoteProject(), "ulimit -s unlimited", res+" 1>PID");
pass.user.connection.performScriptNoWait(getRemoteProject(), "ulimit -s unlimited", res+" 1>PID");
RemoteFile PID = getPID();
while (!pass.user.connection.Exists(PID)){
System.out.println("PID NOT FOUND");