aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.c
diff options
context:
space:
mode:
authorokan2015-11-12 17:56:54 +0000
committerokan2015-11-12 17:56:54 +0000
commitea9b9d8cd8863bb57a4413454173571925a00474 (patch)
tree98e657f2cd17bf5b786c2d009c17a94c2de2c631 /calmwm.c
parentf6f5e0fe9eb0a0ce66ee5d0720182bfadf2cf800 (diff)
downloadcwm-ea9b9d8cd8863bb57a4413454173571925a00474.tar.gz
pledge "stdio rpath proc exec" cwm before main event loop, after
init/setup - mostly for menu building. ok semarie@ (another cwm user)
Diffstat (limited to 'calmwm.c')
-rw-r--r--calmwm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/calmwm.c b/calmwm.c
index 96e7c16..1c315f0 100644
--- a/calmwm.c
+++ b/calmwm.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: calmwm.c,v 1.95 2015/11/10 20:05:33 okan Exp $
+ * $OpenBSD: calmwm.c,v 1.96 2015/11/12 17:56:54 okan Exp $
*/
#include <sys/types.h>
@@ -113,6 +113,10 @@ main(int argc, char **argv)
x_init(display_name);
cwm_status = CWM_RUNNING;
+
+ if (pledge("stdio rpath proc exec", NULL) == -1)
+ err(1, "pledge");
+
while (cwm_status == CWM_RUNNING)
xev_process();
x_teardown();