2 Oct
2008
2 Oct
'08
5:40 p.m.
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;