From e91b1e3da72cffc797f77719ec9375ab3ad3b959 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 2 Oct 2008 17:40:41 +0000 Subject: [PATCH] tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9793 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/switch.c b/src/switch.c index 26ccfdb721..aad686981a 100644 --- a/src/switch.c +++ b/src/switch.c @@ -269,7 +269,7 @@ int main(int argc, char *argv[]) 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 @@ int main(int argc, char *argv[]) } if (destroy_status == SWITCH_STATUS_RESTART) { - execv(argv[0], argv); - ret = 0; + ret = execv(argv[0], argv); } return ret;