dbg: Better logging, -d runcmd_trace_file=FILEPATH support

This commit is contained in:
ge
2026-06-01 00:01:32 +03:00
parent 5636f29acd
commit ac516c7b6c
3 changed files with 29 additions and 13 deletions
+2
View File
@@ -86,6 +86,7 @@ pub fn (s ProcessState) str() string {
str = 'unknown'
}
}
if s.status.coredump() {
str += ' (core dumped)'
}
@@ -145,6 +146,7 @@ pub fn (mut p Process) start() !int {
os.chdir(p.dir)!
}
printdbg('${@METHOD}: calling execve() with executable `${p.path}`')
os.execve(p.path, p.argv, env)!
}