diff --git a/p2p/net/mock/mock_conn.go b/p2p/net/mock/mock_conn.go index a826d66eaeb48ac8afeb5e5bbcffbc8947c9a0e1..fcb634624c4716a16ab771f7770983816b77c0bd 100644 --- a/p2p/net/mock/mock_conn.go +++ b/p2p/net/mock/mock_conn.go @@ -2,12 +2,7 @@ package mocknet import ( "container/list" - "fmt" - "os" - "os/signal" - "runtime" "sync" - "syscall" process "github.com/jbenet/goprocess" ic "github.com/libp2p/go-libp2p-crypto" @@ -16,19 +11,6 @@ import ( ma "github.com/multiformats/go-multiaddr" ) -func init() { - go func() { - sigs := make(chan os.Signal, 1) - signal.Notify(sigs, syscall.SIGQUIT) - buf := make([]byte, 1<<20) - for { - <-sigs - stacklen := runtime.Stack(buf, true) - fmt.Printf("=== received SIGQUIT ===\n*** goroutine dump...\n%s\n*** end\n", buf[:stacklen]) - } - }() -} - // conn represents one side's perspective of a // live connection between two peers. // it goes over a particular link.