Commit cd2906f9 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Style cleanup.

remove two unused variables.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@666 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent c5250561
...@@ -30,8 +30,6 @@ pid_t child_pid = -1; ...@@ -30,8 +30,6 @@ pid_t child_pid = -1;
static int child_fds[2]; static int child_fds[2];
static unsigned child_should_run; static unsigned child_should_run;
static unsigned child_ticker;
static unsigned dstarts;
struct evbase *mgt_evb; struct evbase *mgt_evb;
...@@ -142,7 +140,6 @@ start_child(void) ...@@ -142,7 +140,6 @@ start_child(void)
free(p); free(p);
exit (2); exit (2);
} }
child_ticker = 0;
} }
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
...@@ -232,7 +229,7 @@ void ...@@ -232,7 +229,7 @@ void
mgt_run(int dflag) mgt_run(int dflag)
{ {
struct sigaction sac; struct sigaction sac;
struct ev *ev_sigchld, *ev_sigint; struct ev *e;
mgt_pid = getpid(); mgt_pid = getpid();
...@@ -242,19 +239,20 @@ mgt_run(int dflag) ...@@ -242,19 +239,20 @@ mgt_run(int dflag)
if (dflag) if (dflag)
mgt_cli_setup(0, 1, 1); mgt_cli_setup(0, 1, 1);
ev_sigint = ev_new(); e = ev_new();
assert(ev_sigint != NULL); assert(e != NULL);
ev_sigint->sig = SIGINT; e->sig = SIGINT;
ev_sigint->callback = mgt_sigint; e->callback = mgt_sigint;
ev_sigint->name = "mgt_sigint"; e->name = "mgt_sigint";
AZ(ev_add(mgt_evb, ev_sigint)); AZ(ev_add(mgt_evb, e));
ev_sigchld = ev_new(); e = ev_new();
ev_sigchld->sig = SIGCHLD; assert(e != NULL);
ev_sigchld->sig_flags = SA_NOCLDSTOP; e->sig = SIGCHLD;
ev_sigchld->callback = mgt_sigchld; e->sig_flags = SA_NOCLDSTOP;
ev_sigchld->name = "mgt_sigchild"; e->callback = mgt_sigchld;
AZ(ev_add(mgt_evb, ev_sigchld)); e->name = "mgt_sigchild";
AZ(ev_add(mgt_evb, e));
setproctitle("Varnish-Mgr"); setproctitle("Varnish-Mgr");
...@@ -285,6 +283,5 @@ mcf_server_startstop(struct cli *cli, char **av, void *priv) ...@@ -285,6 +283,5 @@ mcf_server_startstop(struct cli *cli, char **av, void *priv)
stop_child(); stop_child();
return; return;
} }
dstarts = 0;
start_child(); start_child();
} }
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