Also capture syscall.SIGINT in copy menu; bump libmutton to fix Windows background processes dying with parent terminal

This commit is contained in:
2026-01-10 23:39:38 -05:00
parent 0211941a48
commit 5f02e41c05
4 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ func CopyMenu(vanityPath string, decSlice []string, oldPassword string) {
// set up signal handling for ctrl+c to clear clipboard
sigChan := make(chan os.Signal, 1)
signal.Notify(sigChan, os.Interrupt, syscall.SIGTERM)
signal.Notify(sigChan, os.Interrupt, syscall.SIGINT, syscall.SIGTERM)
go func() {
<-sigChan
if err = clip.ClearProcess(""); err != nil {