seatd-launch: print unlink/kill errors
Makes it easier to find out that something went wrong.
This commit is contained in:
parent
fe600eac2b
commit
4e3b7b3bb6
1 changed files with 6 additions and 2 deletions
|
@ -161,8 +161,12 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
}
|
||||
|
||||
unlink(sockpath);
|
||||
kill(seatd_child, SIGTERM);
|
||||
if (unlink(sockpath) != 0) {
|
||||
perror("Could not unlink socket");
|
||||
}
|
||||
if (kill(seatd_child, SIGTERM) != 0) {
|
||||
perror("Could not kill seatd");
|
||||
}
|
||||
|
||||
if (WIFEXITED(status)) {
|
||||
return WEXITSTATUS(status);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue