no catch sigint

This commit is contained in:
Bel LaPointe
2024-11-18 06:51:17 -07:00
parent 9de277a879
commit 3e36e53805

View File

@@ -5,17 +5,12 @@ import (
"fmt"
"log"
"os"
"os/signal"
"syscall"
"ffmpeg.d/pkg/fs"
)
func main() {
ctx, can := signal.NotifyContext(context.Background(), syscall.SIGINT)
defer can()
if err := Run(ctx, os.Args[1:]); err != nil {
if err := Run(context.Background(), os.Args[1:]); err != nil {
panic(err)
}
}