aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTheo Buehler <botovq@users.noreply.github.com>2024-05-17 21:41:45 +0200
committerGitHub <noreply@github.com>2024-05-17 21:41:45 +0200
commit854696cfb50d759549720bd117f894158a5b759d (patch)
tree957adce4e90871833ddd3d236b929e44a1d0fb6a /src
parentc06ac08aab2f40c9054c8724ee670fb4cbd16995 (diff)
downloadi3-854696cfb50d759549720bd117f894158a5b759d.tar.gz
i3-854696cfb50d759549720bd117f894158a5b759d.zip
Remove pledge() support for OpenBSD (#6048)
While this initially worked fine, at some point these patches broke because libcairo started calling shmget(2) - a syscall not covered by any pledge promise - and a common pitfall when using pledge with graphics-oriented applications. Various attempts were made to fix them, but at some time they were simply disabled in the OpenBSD port: https://github.com/openbsd/ports/commit/a4a9f41dd79f8e9db6d58fb946d2a0c7151cde00 https://github.com/openbsd/ports/commit/5a03c386bab19dcc8e8d7a618693d557840068d1 This seems pointless and creates needless friction both for the i3 team who was willing to carry ugly code and for the OpenBSD ports maintainers who had to disable that code again. Let's abandon this experiment.
Diffstat (limited to 'src')
-rw-r--r--src/main.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index 41054fcf..a7fdc79e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1147,12 +1147,6 @@ int main(int argc, char *argv[]) {
}
}
-#if defined(__OpenBSD__)
- if (pledge("stdio rpath wpath cpath proc exec unix", NULL) == -1) {
- err(EXIT_FAILURE, "pledge");
- }
-#endif
-
if (!disable_signalhandler) {
setup_signal_handler();
} else {