fix windows build

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14424 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2009-07-29 22:33:44 +00:00
parent 58d5c86936
commit c0248be1c3
2 changed files with 5 additions and 5 deletions

View File

@@ -741,15 +741,15 @@ int main(int argc, char *argv[])
if (destroy_status == SWITCH_STATUS_RESTART) {
char buf[1024] = "";
int i = 0;
int j = 0;
switch_assert(local_argv[0]);
switch_sleep(1000000);
ret = (int)execv(local_argv[0], local_argv);
fprintf(stderr, "Restart Failed [%s] resorting to plan b\n", strerror(errno));
for(i = 0; i < argc; i++) {
switch_snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "%s ", local_argv[i]);
for(j = 0; i < argc; j++) {
switch_snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "%s ", local_argv[j]);
}
ret = system(buf);