mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-12 00:55:34 +00:00
feature: Kill support in the UI (#297)
* feature: Kill command API (wip) * feature: Kill support in the UI
This commit is contained in:
@@ -74,6 +74,7 @@ type InternalLogEntry struct {
|
||||
ExecutionStarted bool
|
||||
ExecutionFinished bool
|
||||
ExecutionTrackingID string
|
||||
Process *os.Process
|
||||
|
||||
/*
|
||||
The following 3 properties are obviously on Action normally, but it's useful
|
||||
@@ -382,6 +383,8 @@ func stepExec(req *ExecutionRequest) bool {
|
||||
|
||||
runerr := cmd.Start()
|
||||
|
||||
req.logEntry.Process = cmd.Process
|
||||
|
||||
waiterr := cmd.Wait()
|
||||
|
||||
req.logEntry.ExitCode = int32(cmd.ProcessState.ExitCode())
|
||||
|
||||
Reference in New Issue
Block a user