summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2017-01-30 21:45:28 +0000
committerMatthieu Herrb <matthieu@herrb.eu>2020-07-14 15:52:37 +0200
commit56555b26522e454ad613fe9d8152317b4e502752 (patch)
tree3bd7cdc476b21d509c3b812dec4e2a490af65ca3
parent30a04c3603f0d471e2278f2ecdf54e4ceb1d8841 (diff)
Reset SIGCHLD signal handler to previous value in error path, too.
ok matthieu@
-rw-r--r--xenodm/session.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xenodm/session.c b/xenodm/session.c
index 905d4b9..ca19a89 100644
--- a/xenodm/session.c
+++ b/xenodm/session.c
@@ -103,7 +103,7 @@ AbortClient (pid_t pid)
LogError ("xdm can't kill client\n");
case EINVAL:
case ESRCH:
- return;
+ goto done;
}
}
sleep(10);
@@ -115,6 +115,7 @@ AbortClient (pid_t pid)
}
sig = SIGKILL;
}
+done:
signal(SIGCHLD, old);
}