aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2009-12-22 13:36:46 +0100
committerTobias Brunner <tobias@strongswan.org>2009-12-23 17:03:42 +0100
commit3f490ff978dc479c7f27a877f51e3001126a55f4 (patch)
treed19dc13199a50c424a70eee49777e1c924005e1a /src
parent85202e8795561d023c83d2b2c32c25a2a720fc04 (diff)
downloadstrongswan-3f490ff978dc479c7f27a877f51e3001126a55f4.tar.bz2
strongswan-3f490ff978dc479c7f27a877f51e3001126a55f4.tar.xz
According to the man page (and the header files in Android) prctl takes a total of 5 arguments.
Diffstat (limited to 'src')
-rw-r--r--src/charon/daemon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/charon/daemon.c b/src/charon/daemon.c
index 9d6f4f1d3..b9c06622b 100644
--- a/src/charon/daemon.c
+++ b/src/charon/daemon.c
@@ -23,6 +23,7 @@
#define _POSIX_PTHREAD_SEMANTICS /* for two param sigwait on OpenSolaris */
#include <signal.h>
#undef _POSIX_PTHREAD_SEMANTICS
+#include <pthread.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
@@ -252,7 +253,7 @@ static void kill_daemon(private_daemon_t *this, char *reason)
static void drop_capabilities(private_daemon_t *this)
{
#ifdef HAVE_PRCTL
- prctl(PR_SET_KEEPCAPS, 1);
+ prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0);
#endif
if (setgid(charon->gid) != 0)