()
| 100 | } |
| 101 | |
| 102 | func (p *Process) LogValue() slog.Value { |
| 103 | select { |
| 104 | case <-p.Exited: |
| 105 | return slog.GroupValue(slog.Int("pid", p.PID), slog.Bool("exited", true)) |
| 106 | default: |
| 107 | return slog.GroupValue(slog.Int("pid", p.PID), slog.Bool("exited", false)) |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | // installSocket installs a socket into the process's file descriptor table and |
| 112 | // completes the seccomp notification. |