| , elevatedRunner( taskToRun, inBatch ){ | , elevatedRunner( taskToRun, inBatch ){ | ||||
| // PB : TODO -- Should be called only when we are in an elevated shell that was already requested from an unelevated shell with a batch of tasks. | // PB : TODO -- Should be called only when we are in an elevated shell that was already requested from an unelevated shell with a batch of tasks. | ||||
| try { | try { | ||||
| var runlogjson = `${selectedinstance.root}/.elxr/run-${runtimestamp}/run.log` | |||||
| var runlogjson = `${selectedinstance.root}/.elxr/run-${taskToRun.runtimestamp}/run.log` | |||||
| var __runasresult = null; | var __runasresult = null; | ||||
| return taskToRun().then((r)=>{ | return taskToRun().then((r)=>{ | ||||
| // PB : TODO -- Every elevation should have its own messaging file. Async writes from multiple processes are a problem here... | // PB : TODO -- Every elevation should have its own messaging file. Async writes from multiple processes are a problem here... |