[Freeswitch-svn] [commit] r9793 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Thu Oct 2 13:40:42 EDT 2008


Author: mikej
Date: Thu Oct  2 13:40:41 2008
New Revision: 9793

Modified:
   freeswitch/trunk/src/switch.c

Log:
tweak

Modified: freeswitch/trunk/src/switch.c
==============================================================================
--- freeswitch/trunk/src/switch.c	(original)
+++ freeswitch/trunk/src/switch.c	Thu Oct  2 13:40:41 2008
@@ -269,7 +269,7 @@
 	int known_opt;
 	int high_prio = 0;
 	switch_core_flag_t flags = SCF_USE_SQL;
-	int ret;
+	int ret = 0;
 	switch_status_t destroy_status;
 	switch_file_t *fd;
 	switch_memory_pool_t *pool = NULL;
@@ -617,8 +617,7 @@
 	}
 
 	if (destroy_status == SWITCH_STATUS_RESTART) {
-		execv(argv[0], argv);
-		ret = 0;
+		ret = execv(argv[0], argv);
 	}
 
 	return ret;



More information about the Freeswitch-svn mailing list