Skip to content

Commit cffa9e8

Browse files
committed
chore: ignore SIGPIPE syscall
1 parent d1f153d commit cffa9e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/mkc/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import (
1010
"github.com/coding-socks/matroska/cmd/mkc/internal/list"
1111
"log"
1212
"os"
13+
"os/signal"
14+
"syscall"
1315
)
1416

1517
var commands = []*cli.Command{
@@ -21,6 +23,7 @@ func main() {
2123
flag.Parse()
2224

2325
mode := flag.Arg(0)
26+
signal.Ignore(syscall.SIGPIPE)
2427

2528
if mode == "" {
2629
options := make([]huh.Option[string], len(commands))

0 commit comments

Comments
 (0)