Skip to content

Commit

Permalink
doc: update reaper exit comment
Browse files Browse the repository at this point in the history
  • Loading branch information
qianlongzt committed Oct 2, 2024
1 parent d467e95 commit 8ca5c61
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions reaper.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ func reapChildren(superCrondPid int) syscall.WaitStatus {
break
}

// when supercronic exit, may left some process
// expamle like "supercronic" -> B -> C
// B exit, C may exist
// when supercronic exits, it may leave some processes behind.
// This is okay since the reaper runs as a sidecar for supercronic.
if superCrondPid == pid {
logrus.Debugf("supercronic exit, pid=%d, wstatus=%+v, err=%+v\n", pid, wstatus, err)
return wstatus
Expand Down

0 comments on commit 8ca5c61

Please sign in to comment.