[asterisk-commits] trunk r9962 - /trunk/asterisk.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Feb 14 11:47:18 MST 2006


Author: bweschke
Date: Tue Feb 14 12:47:16 2006
New Revision: 9962

URL: http://svn.digium.com/view/asterisk?rev=9962&view=rev
Log:
  #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.


Modified:
    trunk/asterisk.c

Modified: trunk/asterisk.c
URL: http://svn.digium.com/view/asterisk/trunk/asterisk.c?rev=9962&r1=9961&r2=9962&view=diff
==============================================================================
--- trunk/asterisk.c (original)
+++ trunk/asterisk.c Tue Feb 14 12:47:16 2006
@@ -2192,11 +2192,13 @@
 
 #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());



More information about the asterisk-commits mailing list