diff options
author | Theo Buehler <botovq@users.noreply.github.com> | 2024-05-17 21:41:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-17 21:41:45 +0200 |
commit | 854696cfb50d759549720bd117f894158a5b759d (patch) | |
tree | 957adce4e90871833ddd3d236b929e44a1d0fb6a /i3-msg | |
parent | c06ac08aab2f40c9054c8724ee670fb4cbd16995 (diff) | |
download | i3-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 'i3-msg')
-rw-r--r-- | i3-msg/main.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/i3-msg/main.c b/i3-msg/main.c index e2d27412..37954739 100644 --- a/i3-msg/main.c +++ b/i3-msg/main.c @@ -148,11 +148,6 @@ static yajl_callbacks config_callbacks = { }; int main(int argc, char *argv[]) { -#if defined(__OpenBSD__) - if (pledge("stdio rpath unix", NULL) == -1) { - err(EXIT_FAILURE, "pledge"); - } -#endif char *socket_path = NULL; int o, option_index = 0; uint32_t message_type = I3_IPC_MESSAGE_TYPE_RUN_COMMAND; |