Skip to content

Commit 5882e0a

Browse files
authored
Merge pull request #201 from intel/sigexit
send sigkill to child processes when receive sigint
2 parents 4a9d62c + f481fb8 commit 5882e0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/metrics/metrics.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,8 @@ func runCmd(cmd *cobra.Command, args []string) error {
504504
sig := <-sigChannel
505505
setSignalReceived()
506506
slog.Info("received signal", slog.String("signal", sig.String()))
507-
// propogate signal to children
508-
util.SignalChildren(sig)
507+
// send kill signal to children
508+
util.SignalChildren(syscall.SIGKILL)
509509
}()
510510
// round up to next perfPrintInterval second (the collection interval used by perf stat)
511511
if flagDuration != 0 {

0 commit comments

Comments
 (0)