Commit e44526ee authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Dridi Boukelmoune

Polish

parent 70a444b9
...@@ -302,8 +302,8 @@ do_curses(void *arg) ...@@ -302,8 +302,8 @@ do_curses(void *arg)
case 'Q': case 'Q':
case 'q': case 'q':
AZ(raise(SIGINT)); AZ(raise(SIGINT));
AC(endwin()); quit = 1;
return (NULL); break;
default: default:
AC(beep()); AC(beep());
break; break;
...@@ -389,18 +389,14 @@ main(int argc, char **argv) ...@@ -389,18 +389,14 @@ main(int argc, char **argv)
vut->dispatch_priv = NULL; vut->dispatch_priv = NULL;
vut->sighup_f = sighup; vut->sighup_f = sighup;
if (once) { if (once) {
VUT_Main(vut); (void)VUT_Main(vut);
dump(); dump();
} else { } else {
if (pthread_create(&thr, NULL, do_curses, NULL) != 0) { AZ(pthread_create(&thr, NULL, do_curses, NULL));
fprintf(stderr, "pthread_create(): %s\n", (void)VUT_Main(vut);
strerror(errno));
exit(1);
}
VUT_Main(vut);
end_of_file = 1; end_of_file = 1;
AZ(pthread_join(thr, NULL)); AZ(pthread_join(thr, NULL));
} }
VUT_Fini(&vut); VUT_Fini(&vut);
exit(0); return (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