Commit 1c05470d authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Flexelinting

parent 767279e7
...@@ -382,22 +382,22 @@ main(int argc, char **argv) ...@@ -382,22 +382,22 @@ main(int argc, char **argv)
ident = VSM_Dup(vut->vsm, "Arg", "-i"); ident = VSM_Dup(vut->vsm, "Arg", "-i");
else else
ident = strdup(""); ident = strdup("");
if (!once) { vut->dispatch_f = accumulate;
vut->dispatch_priv = NULL;
vut->sighup_f = sighup;
if (once) {
VUT_Main(vut);
dump();
} else {
if (pthread_create(&thr, NULL, do_curses, NULL) != 0) { if (pthread_create(&thr, NULL, do_curses, NULL) != 0) {
fprintf(stderr, "pthread_create(): %s\n", fprintf(stderr, "pthread_create(): %s\n",
strerror(errno)); strerror(errno));
exit(1); exit(1);
} }
}
vut->dispatch_f = accumulate;
vut->dispatch_priv = NULL;
vut->sighup_f = sighup;
VUT_Main(vut); VUT_Main(vut);
end_of_file = 1; end_of_file = 1;
if (once) AZ(pthread_join(thr, NULL));
dump(); }
else
pthread_join(thr, NULL);
VUT_Fini(&vut); VUT_Fini(&vut);
exit(0); exit(0);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment