Commit 12efd53e authored by Alessandro Rubini's avatar Alessandro Rubini

rvlan: toggle verbose mode on SIGUSR2

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 83719763
......@@ -833,6 +833,13 @@ int main(int argc, char **argv)
rvlan_gotsignal = 0;
}
if (rvlan_gotsignal == SIGUSR2) {
FILE *f;
verbose = !verbose;
f = fopen("/tmp/rvlan-is-verbose", "w");
if (f) {
fprintf(f, "%i\n", verbose);
fclose(f);
}
rvlan_reauth();
rvlan_gotsignal = 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