modifs.mineures sans commentaires

This commit is contained in:
Jephté Clain 2024-06-15 11:02:01 +04:00
parent 30d4c55c8a
commit 8c0c1a2f85
1 changed files with 3 additions and 2 deletions

View File

@ -23,7 +23,7 @@ class launcher {
"--internal-use", $tmpfile->getFile(), "--internal-use", $tmpfile->getFile(),
$appClass, "--", ...$args, $appClass, "--", ...$args,
]); ]);
$cmd->addRedir("null"); $cmd->addRedir("both", "/tmp/_nulib_launch-launcher.log");
$cmd->passthru($exitcode); $cmd->passthru($exitcode);
# attendre un peu que la commande aie le temps de s'initialiser # attendre un peu que la commande aie le temps de s'initialiser
@ -51,8 +51,9 @@ class launcher {
try { try {
# puis lancer la commande # puis lancer la commande
$cmd = new Cmd($args); $cmd = new Cmd($args);
#XXX fichier de log?
$cmd->addSource("/g/init.env"); $cmd->addSource("/g/init.env");
$cmd->addRedir("both", "/tmp/_nulib_launch-app.log");
#XXX prendre le fichier de log de $runfile si possible?
$cmd->addRedir("null"); $cmd->addRedir("null");
msg::debug("$pid: launching\n".$cmd->getCmd()); msg::debug("$pid: launching\n".$cmd->getCmd());
$cmd->fork_exec($exitcode); $cmd->fork_exec($exitcode);