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:
parent
d98c26da66
commit
37c319a782
@ -136,13 +136,14 @@ int main(int argc, char * argv[])
|
||||
cout << "----------------------------------------" << endl;
|
||||
}
|
||||
|
||||
distrib the_distrib;
|
||||
|
||||
struct timeval before, after;
|
||||
gettimeofday(&before, NULL); /* start timing */
|
||||
|
||||
if (distributed)
|
||||
{
|
||||
/* start the distribution infrastructure */
|
||||
distrib the_distrib;
|
||||
if (server)
|
||||
{
|
||||
if (strcmp(hosts_file, ""))
|
||||
@ -241,5 +242,6 @@ int main(int argc, char * argv[])
|
||||
cout << endl;
|
||||
}
|
||||
|
||||
exit(0);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user