moved distrib object to a top-level object in the function so it would not be destroyed before main() exits; added exit(0) call at end of main()
git-svn-id: svn://anubis/fart/trunk@242 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
1 parent
d98c26da66
commit
37c319a782
1 file changed
+3
-1
+3
-1
@@ -136,13 +136,14 @@ int main(int argc, char * argv[])
|
|||||||
cout << "----------------------------------------" << endl;
|
cout << "----------------------------------------" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
distrib the_distrib;
|
||||||
|
|
||||||
struct timeval before, after;
|
struct timeval before, after;
|
||||||
gettimeofday(&before, NULL); /* start timing */
|
gettimeofday(&before, NULL); /* start timing */
|
||||||
|
|
||||||
if (distributed)
|
if (distributed)
|
||||||
{
|
{
|
||||||
/* start the distribution infrastructure */
|
/* start the distribution infrastructure */
|
||||||
distrib the_distrib;
|
|
||||||
if (server)
|
if (server)
|
||||||
{
|
{
|
||||||
if (strcmp(hosts_file, ""))
|
if (strcmp(hosts_file, ""))
|
||||||
@@ -241,5 +242,6 @@ int main(int argc, char * argv[])
|
|||||||
cout << endl;
|
cout << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exit(0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user