seatd-launch: Do not unlink socket path

seatd cleans up after itself and takes care of stale sockets when
applicable, so seatd-launch should not replicate this functionality.
This commit is contained in:
Kenny Levinsen 2022-02-21 11:44:27 +01:00
parent 0864f6a3ac
commit 32d06482d3

View file

@ -53,8 +53,6 @@ int main(int argc, char *argv[]) {
sockpath = sockbuf;
}
unlink(sockpath);
int fds[2];
if (pipe(fds) == -1) {
perror("Could not create pipe");
@ -170,9 +168,6 @@ int main(int argc, char *argv[]) {
}
}
if (unlink(sockpath) != 0) {
perror("Could not unlink socket");
}
if (kill(seatd_child, SIGTERM) != 0) {
perror("Could not kill seatd");
}
@ -186,7 +181,6 @@ int main(int argc, char *argv[]) {
}
error_seatd:
unlink(sockpath);
kill(seatd_child, SIGTERM);
error:
return 1;