mirror of
https://github.com/tuxedocomputers/tuxedo-touchpad-switch.git
synced 2025-01-18 11:41:10 +01:00
Fix process not closing on logout
This commit is contained in:
parent
9db712c6bb
commit
9eea52ef40
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue