Fix process not closing on logout

pull/3/head
Werner Sembach 4 years ago
parent 9db712c6bb
commit 9eea52ef40

@ -79,6 +79,10 @@ int main() {
cerr << "main(...): sigaction(...) failed." << endl;
gracefull_exit(-EXIT_FAILURE);
}
if (sigaction(SIGHUP, &sigaction_gracefull_exit, nullptr)) {
cerr << "main(...): sigaction(...) failed." << endl;
gracefull_exit(-EXIT_FAILURE);
}
lockfile = open("/etc/tuxedo-touchpad-switch-lockfile", O_RDONLY);
if (lockfile == -1) {

Loading…
Cancel
Save