projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9918fb
)
#ifdef'd the prctl fix to only try and compile on linux systems. Thanks rizzo for...
author
BJ Weschke
<bweschke@btwtech.com>
Tue, 14 Feb 2006 18:47:16 +0000
(18:47 +0000)
committer
BJ Weschke
<bweschke@btwtech.com>
Tue, 14 Feb 2006 18:47:16 +0000
(18:47 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9962
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
asterisk.c
patch
|
blob
|
history
diff --git
a/asterisk.c
b/asterisk.c
index
0da54a2
..
40ddb3e
100644
(file)
--- 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());