MCPcopy Create free account
hub / github.com/eth-easl/dirigent / extractExitCode

Function extractExitCode

internal/worker_node/managers/process_monitor.go:115–125  ·  view source on GitHub ↗
(data *garlic.EventData)

Source from the content-addressed store, hash-verified

113}
114
115func extractExitCode(data *garlic.EventData) uint32 {
116 switch (*data).(type) {
117 case garlic.Exit:
118 // Value of 128 -- https://tldp.org/LDP/abs/html/exitcodes.html
119 return (*data).(garlic.Exit).ExitCode + 128
120 default:
121 logrus.Error("Garlic return wrong type of event.")
122 }
123
124 return 255
125}

Callers 1

internalEventHandlerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected