added safeguard to ps run
This commit is contained in:
parent
563211af6f
commit
cb7e284313
@ -1,5 +1,6 @@
|
||||
package kernel.ps;
|
||||
|
||||
import kernel.log.Log;
|
||||
import kernel.ps.ProcessHandle.HandleConfig;
|
||||
|
||||
using tink.CoreApi;
|
||||
@ -15,7 +16,12 @@ class ProcessManager {
|
||||
|
||||
processList.set(pid, handle);
|
||||
|
||||
try{
|
||||
process.run(handle);
|
||||
}catch(e:Dynamic){
|
||||
Log.error("Error while running process: " + e);
|
||||
handle.close(false);
|
||||
}
|
||||
|
||||
return pid;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user