about summary refs log tree commit diff homepage
path: root/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'server.c')
-rw-r--r--server.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/server.c b/server.c
index e61f99e..314fccd 100644
--- a/server.c
+++ b/server.c
@@ -392,6 +392,11 @@ int main(int argc, char *argv[]) {
 		dprintf(pidFile, "%ju", (uintmax_t)getpid());
 	}
 
+#ifdef __OpenBSD__
+	error = pledge("stdio unix", NULL);
+	if (error) err(EX_OSERR, "pledge");
+#endif
+
 #ifdef __FreeBSD__
 	error = cap_enter();
 	if (error) err(EX_OSERR, "cap_enter");