Add pledge(2) support (OpenBSD only) via a 'protector' package. (#1297)

This commit is contained in:
Aaron Bieber
2020-01-19 14:13:32 +09:00
committed by Junegunn Choi
parent 7771241cc0
commit a1bcdc225e
3 changed files with 23 additions and 1 deletions
+5 -1
View File
@@ -1,9 +1,13 @@
package main
import "github.com/junegunn/fzf/src"
import (
"github.com/junegunn/fzf/src"
"github.com/junegunn/fzf/src/protector"
)
var revision string
func main() {
protector.Protect()
fzf.Run(fzf.ParseOptions(), revision)
}