diff options
author | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-14 18:47:16 +0000 |
---|---|---|
committer | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-14 18:47:16 +0000 |
commit | f6d4ed6d51ff12dba0014d692cb0dd2d9bc65db9 (patch) | |
tree | fecb101b2621a96bf7623db22648d9d6e3b2cd6c /asterisk.c | |
parent | 9c8ab2d16506cdfd08b8c11d91ec0c5635f4577a (diff) |
#ifdef'd the prctl fix to only try and compile on linux systems. Thanks rizzo for pointing this out, and credit to Armin for identifying a solution to the original problem.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9962 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'asterisk.c')
-rw-r--r-- | asterisk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/asterisk.c b/asterisk.c index 0da54a21b..40ddb3e33 100644 --- a/asterisk.c +++ b/asterisk.c @@ -2192,11 +2192,13 @@ int main(int argc, char *argv[]) #endif /* __CYGWIN__ */ +#ifdef linux if (geteuid() && ast_opt_dump_core) { 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()); |