From 37c319a7829f388448ff7d5f440a21a59c59e4c7 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Wed, 15 Apr 2009 01:03:42 +0000 Subject: [PATCH] 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 --- main/fart.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/fart.cc b/main/fart.cc index ac201a3..aeb531e 100644 --- a/main/fart.cc +++ b/main/fart.cc @@ -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; }