diff options
-rw-r--r-- | daemon.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/daemon.c b/daemon.c index 59215f6..f36e277 100644 --- a/daemon.c +++ b/daemon.c @@ -307,6 +307,11 @@ int main(int argc, char *argv[]) { if (len < 0) syslog(LOG_WARNING, "%s: %m", pidPath); } +#ifdef __OpenBSD__ + error = pledge("stdio cpath rpath proc exec id", NULL); + if (error) err(EX_OSERR, "pledge"); +#endif + signal(SIGHUP, signalHandler); signal(SIGINT, signalHandler); signal(SIGTERM, signalHandler); |