github.com/anjalikarhana/fabric@v2.1.1+incompatible/orderer/common/server/signals.go (about) 1 // +build !windows 2 3 /* 4 Copyright IBM Corp. All Rights Reserved. 5 6 SPDX-License-Identifier: Apache-2.0 7 */ 8 9 package server 10 11 import ( 12 "os" 13 "syscall" 14 15 "github.com/hyperledger/fabric/common/diag" 16 ) 17 18 func addPlatformSignals(sigs map[os.Signal]func()) map[os.Signal]func() { 19 sigs[syscall.SIGUSR1] = func() { diag.LogGoRoutines(logger.Named("diag")) } 20 return sigs 21 }