(s stack.Stack)
| 187 | } |
| 188 | |
| 189 | func isStdLibStack(s stack.Stack) bool { |
| 190 | // Importing os/signal starts a background goroutine. |
| 191 | // The name of the function at the top has changed between versions. |
| 192 | if f := s.FirstFunction(); f == "os/signal.signal_recv" || f == "os/signal.loop" { |
| 193 | return true |
| 194 | } |
| 195 | |
| 196 | // Using signal.Notify will start a runtime goroutine. |
| 197 | return s.HasFunction("runtime.ensureSigM") |
| 198 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…