From e9702239dac41f8d23dfc30d5832b61e8948dc3c Mon Sep 17 00:00:00 2001 From: Yufan Lou Date: Fri, 6 May 2016 03:50:04 +0800 Subject: [PATCH] Fix windows build No UNIX signals are defined under windows, so Ctrl-Z sending SIGSTOP to self is removed. --- boltbrowser.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/boltbrowser.go b/boltbrowser.go index d21531e..41b46f5 100644 --- a/boltbrowser.go +++ b/boltbrowser.go @@ -25,12 +25,6 @@ func mainLoop(memBolt *BoltDB, style Style) { for { event := termbox.PollEvent() if event.Type == termbox.EventKey { - if event.Key == termbox.KeyCtrlZ { - process, _ := os.FindProcess(os.Getpid()) - termbox.Close() - process.Signal(syscall.SIGSTOP) - termbox.Init() - } newScreenIndex := displayScreen.handleKeyEvent(event) if newScreenIndex < len(screens) { displayScreen = screens[newScreenIndex] @@ -74,4 +68,4 @@ func main() { mainLoop(memBolt, style) defer db.Close() -} \ No newline at end of file +}