[asterisk-commits] dlee: branch dlee/ASTERISK-194630-startup-deadlock r398376 - /team/dlee/ASTER...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Sep 5 10:17:27 CDT 2013


Author: dlee
Date: Thu Sep  5 10:17:25 2013
New Revision: 398376

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=398376
Log:
Stop trying to kill it; just fix the glitch

Modified:
    team/dlee/ASTERISK-194630-startup-deadlock/main/asterisk.c

Modified: team/dlee/ASTERISK-194630-startup-deadlock/main/asterisk.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/ASTERISK-194630-startup-deadlock/main/asterisk.c?view=diff&rev=398376&r1=398375&r2=398376
==============================================================================
--- team/dlee/ASTERISK-194630-startup-deadlock/main/asterisk.c (original)
+++ team/dlee/ASTERISK-194630-startup-deadlock/main/asterisk.c Thu Sep  5 10:17:25 2013
@@ -3359,11 +3359,6 @@
 	ast_cli_unregister_multiple(cli_asterisk, ARRAY_LEN(cli_asterisk));
 }
 
-static void *fake_thread(void *p)
-{
-	return NULL;
-}
-
 int main(int argc, char *argv[])
 {
 	int c;
@@ -3381,8 +3376,6 @@
 	char *remotesock = NULL;
 	int moduleresult;         /*!< Result from the module load subsystem */
 	struct rlimit l;
-
-	long v;
 
 	/* Remember original args for restart */
 	if (argc > ARRAY_LEN(_argv) - 1) {
@@ -3841,11 +3834,6 @@
 	printf("%s", term_end());
 	fflush(stdout);
 
-	for (v = 0; v < 2000; ++v) {
-		pthread_t th;
-		ast_pthread_create(&th, NULL, fake_thread, (void*)v);
-	}
-
 	print_intro_message(runuser, rungroup);
 
 	if (ast_opt_console && !option_verbose) {




More information about the asterisk-commits mailing list