diff --git a/pcap/cmds_unix.go b/pcap/cmds_unix.go index 380a85f..9687ef1 100644 --- a/pcap/cmds_unix.go +++ b/pcap/cmds_unix.go @@ -10,6 +10,7 @@ import ( "syscall" "github.com/pkg/errors" + log "github.com/sirupsen/logrus" ) func (c *Command) PutInNewGroupOnUnix() { @@ -25,5 +26,6 @@ func (c *Command) Kill() error { if c.Cmd.Process == nil { return errors.WithStack(ProcessNotStarted{Command: c.Cmd}) } + log.Infof("Sending SIGTERM to %v: %v", c.Cmd.Process.Pid, c.Cmd) return syscall.Kill(-c.Cmd.Process.Pid, syscall.SIGTERM) }