In the termination logic of the code snippet below:
|
action.terminate = append(action.terminate, pid) |
// exceeded intensity. start termination
for _, cs := range s.spec {
if cs.pid == empty {
continue
}
action.terminate = append(action.terminate, pid) // ❌ maybe incorrect variable "pid" used here ?
}
The code erroneously appends the variable pid to action.terminate instead of using cs.pid.
(I'm not very familiar with Ergo and Go, so my understanding might be incorrect.)
In the termination logic of the code snippet below:
ergo/act/supervisor_ofo.go
Line 314 in c9de5b0
The code erroneously appends the variable pid to action.terminate instead of using cs.pid.
(I'm not very familiar with Ergo and Go, so my understanding might be incorrect.)