[asterisk-commits] russell: branch 1.4 r83348 - /branches/1.4/main/asterisk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Sep 20 16:16:49 CDT 2007


Author: russell
Date: Thu Sep 20 16:16:48 2007
New Revision: 83348

URL: http://svn.digium.com/view/asterisk?view=rev&rev=83348
Log:
When daemonizing, don't change working directory to "/".  It makes it not be
able to do a core dump when not running as uid=root.
(closes issue #10766, xrg)

Modified:
    branches/1.4/main/asterisk.c

Modified: branches/1.4/main/asterisk.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/asterisk.c?view=diff&rev=83348&r1=83347&r2=83348
==============================================================================
--- branches/1.4/main/asterisk.c (original)
+++ branches/1.4/main/asterisk.c Thu Sep 20 16:16:48 2007
@@ -2813,7 +2813,7 @@
 
 #if HAVE_WORKING_FORK
 	if (ast_opt_always_fork || !ast_opt_no_fork) {
-		daemon(0, 0);
+		daemon(1, 0);
 		ast_mainpid = getpid();
 		/* Blindly re-write pid file since we are forking */
 		unlink(ast_config_AST_PID);




More information about the asterisk-commits mailing list