automerge commit

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@9987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Automerge script
2006-02-14 19:04:48 +00:00
parent b670fe8554
commit 13d5513465
3 changed files with 21 additions and 3 deletions

View File

@@ -75,9 +75,12 @@
#include <grp.h>
#include <pwd.h>
#include <sys/stat.h>
#include <sys/prctl.h>
#include <regex.h>
#ifdef linux
#include <sys/prctl.h>
#endif
#if defined(__FreeBSD__) || defined( __NetBSD__ ) || defined(SOLARIS)
#include <netdb.h>
#endif
@@ -2210,12 +2213,16 @@ int main(int argc, char *argv[])
#endif /* __CYGWIN__ */
#ifdef linux
if (geteuid() && option_dumpcore) {
if (prctl(PR_SET_DUMPABLE, 1, 0, 0, 0) < 0) {
ast_log(LOG_WARNING, "Unable to set the process for core dumps after changing to a non-root user. %s\n", strerror(errno));
}
}
#endif
term_init();
printf(term_end());
fflush(stdout);