[master] 61bb5d90c Polish
Poul-Henning Kamp
phk at FreeBSD.org
Tue Sep 4 15:20:12 UTC 2018
commit 61bb5d90ced3b6d0bf19c56171df6a4586c7497b
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Sep 4 15:19:29 2018 +0000
Polish
diff --git a/bin/varnishtop/varnishtop.c b/bin/varnishtop/varnishtop.c
index 8f02e6022..a4a77e7c9 100644
--- a/bin/varnishtop/varnishtop.c
+++ b/bin/varnishtop/varnishtop.c
@@ -301,8 +301,8 @@ do_curses(void *arg)
case 'Q':
case 'q':
AZ(raise(SIGINT));
- AC(endwin());
- return (NULL);
+ quit = 1;
+ break;
default:
AC(beep());
break;
@@ -388,18 +388,14 @@ main(int argc, char **argv)
vut->dispatch_priv = NULL;
vut->sighup_f = sighup;
if (once) {
- VUT_Main(vut);
+ (void)VUT_Main(vut);
dump();
} else {
- if (pthread_create(&thr, NULL, do_curses, NULL) != 0) {
- fprintf(stderr, "pthread_create(): %s\n",
- strerror(errno));
- exit(1);
- }
- VUT_Main(vut);
+ AZ(pthread_create(&thr, NULL, do_curses, NULL));
+ (void)VUT_Main(vut);
end_of_file = 1;
AZ(pthread_join(thr, NULL));
}
VUT_Fini(&vut);
- exit(0);
+ return (0);
}
More information about the varnish-commit
mailing list