Permalink
Browse files

Now that varnishtest sets up SIGHUP, remove hacks.

  • Loading branch information...
bsdphk committed Jan 13, 2018
1 parent c39ed3c commit 3e454cf29a958a9b8b29aa98dc2891896faf9218
Showing with 1 addition and 10 deletions.
  1. +0 −1 bin/varnishhist/varnishhist.c
  2. +1 −8 bin/varnishstat/varnishstat_curses.c
  3. +0 −1 bin/varnishtop/varnishtop.c
@@ -397,7 +397,6 @@ do_curses(void *arg)
timeout(delay * 1000);
switch ((ch = getch())) {
case ERR:
quit = 1;
break;
#ifdef KEY_RESIZE
case KEY_RESIZE:
@@ -37,7 +37,6 @@
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <poll.h>
#include <stdint.h>
#include <math.h>
@@ -981,7 +980,6 @@ delpt(void *priv, const struct VSC_point *const vpt)
void
do_curses(struct vsm *vsm, struct vsc *vsc, double delay)
{
struct pollfd pollfd;
long t;
int ch;
double now;
@@ -996,9 +994,6 @@ do_curses(struct vsm *vsm, struct vsc *vsc, double delay)
nonl();
curs_set(0);
pollfd.fd = STDIN_FILENO;
pollfd.events = POLLIN;
make_windows();
doupdate();
@@ -1025,12 +1020,10 @@ do_curses(struct vsm *vsm, struct vsc *vsc, double delay)
draw_screen();
t = (t_sample + interval - now) * 1000;
if (t > 0)
(void)poll(&pollfd, 1, t);
timeout(t);
switch (ch = wgetch(w_status)) {
case ERR:
keep_running = 0;
break;
#ifdef KEY_RESIZE /* sigh, Solaris lacks this.. */
case KEY_RESIZE:
@@ -279,7 +279,6 @@ do_curses(void *arg)
switch (getch()) {
case ERR:
quit = 1;
break;
#ifdef KEY_RESIZE
case KEY_RESIZE:

0 comments on commit 3e454cf

Please sign in to comment.