MCPcopy Index your code
hub / github.com/subtrace/subtrace / handleExitGroup

Method handleExitGroup

cmd/run/engine/process/handle.go:40–46  ·  view source on GitHub ↗

handleExitGroup handles the exit_group(2) syscall.

(n *seccomp.Notif, code int)

Source from the content-addressed store, hash-verified

38
39// handleExitGroup handles the exit_group(2) syscall.
40func (p *Process) handleExitGroup(n *seccomp.Notif, code int) error {
41 slog.Debug("process thread group is exiting", "proc", p, "code", code)
42 if p.markAsExited() {
43 go p.cleanup()
44 }
45 return n.Skip()
46}
47
48func (p *Process) handleExecve(n *seccomp.Notif, pathAddr uintptr, argvAddr uintptr, envpAddr uintptr) error {
49 // Invalidate the event template cache so that sockets created by the new

Callers 1

initFunction · 0.80

Calls 3

markAsExitedMethod · 0.95
cleanupMethod · 0.95
SkipMethod · 0.80

Tested by

no test coverage detected