Repository: junegunn/fzf (language: go)

Issue:
Crash on OpenBSD with --listen option
- [X] I have read through the manual page (`man fzf`)
- [X] I have the latest version of fzf
- [X] I have searched through the existing issues

## Info

- OS
    - [ ] Linux
    - [ ] Mac OS X
    - [ ] Windows
    - [X] OpenBSD
- Shell
    - [X] bash
    - [ ] zsh
    - [ ] fish

## Problem / Steps to reproduce

Crash on OpenBSD 7.4/current version on amd64 with ``-listen`` option:
```
$ fzf --version
0.43.0
$ fzf --listen
Abort trap (core dumped)
```

In my kernel logs: `fzf[9961]: pledge "inet", syscall 97`

According to OpenBSD protector code `src/protector/protector_openbsd.go`, syscall for `inet` is not defined to permit HTTP server on network.

I will submit a PR to fix this issue.

Thanks to @semarie for reporting this issue to me.



Discussion / hints:

Fix patch:
diff --git a/src/protector/protector_openbsd.go b/src/protector/protector_openbsd.go
index 34784a6c679..4a72aebe91f 100644
--- a/src/protector/protector_openbsd.go
+++ b/src/protector/protector_openbsd.go
@@ -6,5 +6,5 @@ import "golang.org/x/sys/unix"
 
 // Protect calls OS specific protections like pledge on OpenBSD
 func Protect() {
-	unix.PledgePromises("stdio rpath tty proc exec")
+	unix.PledgePromises("stdio rpath tty proc exec inet")
 }


Test patch: