aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--asterisk.c2
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());