Commit a9d3d695 authored by Emanuele Rocca's avatar Emanuele Rocca Committed by Martin Blix Grydeland

Clear vut->sighup even if sighup_f is not defined

Fixes #3437
parent 3de98332
......@@ -364,12 +364,15 @@ VUT_Main(struct VUT *vut)
AN(vut->vslq);
while (!vut->sigint) {
if (vut->sighup && vut->sighup_f) {
/* sighup callback */
if (vut->sighup) {
vut->sighup = 0;
i = vut->sighup_f(vut);
if (i)
break;
if (vut->sighup_f) {
/* sighup callback */
i = vut->sighup_f(vut);
if (i)
break;
}
}
if (vut->sigusr1) {
......
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