[asterisk-commits] branch 1.2 r9961 - /branches/1.2/asterisk.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Feb 14 11:45:36 MST 2006


Author: bweschke
Date: Tue Feb 14 12:45:34 2006
New Revision: 9961

URL: http://svn.digium.com/view/asterisk?rev=9961&view=rev
Log:
 #ifdef'd the prctl fix to only try and compile on linux systems. Thanks rizzo for pointing this out.


Modified:
    branches/1.2/asterisk.c

Modified: branches/1.2/asterisk.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/asterisk.c?rev=9961&r1=9960&r2=9961&view=diff
==============================================================================
--- branches/1.2/asterisk.c (original)
+++ branches/1.2/asterisk.c Tue Feb 14 12:45:34 2006
@@ -2210,11 +2210,15 @@
 
 #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());



More information about the asterisk-commits mailing list