summaryrefslogtreecommitdiff
path: root/platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'platform.c')
-rw-r--r--platform.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/platform.c b/platform.c
index 0b3bee147..f99de7fab 100644
--- a/platform.c
+++ b/platform.c
@@ -1,4 +1,4 @@
1/* $Id: platform.c,v 1.19 2013/03/12 00:31:05 dtucker Exp $ */ 1/* $Id: platform.c,v 1.21 2014/01/21 01:59:29 tim Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2006 Darren Tucker. All rights reserved. 4 * Copyright (c) 2006 Darren Tucker. All rights reserved.
@@ -55,6 +55,14 @@ platform_pre_fork(void)
55} 55}
56 56
57void 57void
58platform_pre_restart(void)
59{
60#ifdef LINUX_OOM_ADJUST
61 oom_adjust_restore();
62#endif
63}
64
65void
58platform_post_fork_parent(pid_t child_pid) 66platform_post_fork_parent(pid_t child_pid)
59{ 67{
60#ifdef USE_SOLARIS_PROCESS_CONTRACTS 68#ifdef USE_SOLARIS_PROCESS_CONTRACTS
@@ -156,12 +164,6 @@ platform_setusercontext_post_groups(struct passwd *pw, const char *role)
156 aix_usrinfo(pw); 164 aix_usrinfo(pw);
157#endif /* _AIX */ 165#endif /* _AIX */
158 166
159#if !defined(HAVE_LOGIN_CAP) && defined(USE_LIBIAF)
160 if (set_id(pw->pw_name) != 0) {
161 exit(1);
162 }
163# endif /* USE_LIBIAF */
164
165#ifdef HAVE_SETPCRED 167#ifdef HAVE_SETPCRED
166 /* 168 /*
167 * If we have a chroot directory, we set all creds except real 169 * If we have a chroot directory, we set all creds except real