[asterisk-commits] branch 1.2 r25288 - /branches/1.2/asterisk.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon May 8 04:11:38 MST 2006
Author: bweschke
Date: Sun May 7 07:48:09 2006
New Revision: 25288
URL: http://svn.digium.com/view/asterisk?rev=25288&view=rev
Log:
Reset the value of ast_mainpid if we fork so future remote unix connections display the correct PID. #7098 (tzafrir reporting)
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=25288&r1=25287&r2=25288&view=diff
==============================================================================
--- branches/1.2/asterisk.c (original)
+++ branches/1.2/asterisk.c Sun May 7 07:48:09 2006
@@ -2293,6 +2293,7 @@
fclose(f);
} else
ast_log(LOG_WARNING, "Unable to open pid file '%s': %s\n", (char *)ast_config_AST_PID, strerror(errno));
+ ast_mainpid = getpid();
}
/* Test recursive mutex locking. */
More information about the asterisk-commits
mailing list