summaryrefslogtreecommitdiff
path: root/bin/kill/kill.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/kill/kill.c')
-rw-r--r--bin/kill/kill.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/kill/kill.c b/bin/kill/kill.c
index c05c150ddae..df229825d00 100644
--- a/bin/kill/kill.c
+++ b/bin/kill/kill.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kill.c,v 1.12 2014/03/23 12:44:00 millert Exp $ */
+/* $OpenBSD: kill.c,v 1.13 2015/10/10 21:15:25 doug Exp $ */
/* $NetBSD: kill.c,v 1.11 1995/09/07 06:30:27 jtc Exp $ */
/*
@@ -37,6 +37,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
extern char *__progname;
@@ -51,6 +52,9 @@ main(int argc, char *argv[])
int errors, numsig, pid;
char *ep;
+ if (pledge("stdio proc", NULL) == -1)
+ err(1, "pledge");
+
if (argc < 2)
usage();