aboutsummaryrefslogtreecommitdiff
path: root/seatd-launch/seatd-launch.c
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2022-02-21 11:44:27 +0100
committerKenny Levinsen <kl@kl.wtf>2022-02-21 12:02:31 +0100
commit32d06482d3aeaac166d76912fcba53fa8dfb2fcf (patch)
tree21e7790e61f975a632a9b918c2f7f34317935604 /seatd-launch/seatd-launch.c
parent0864f6a3ac8ca8263490269ecc7fdf4c1cd59850 (diff)
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.
Diffstat (limited to 'seatd-launch/seatd-launch.c')
-rw-r--r--seatd-launch/seatd-launch.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/seatd-launch/seatd-launch.c b/seatd-launch/seatd-launch.c
index 69ca86a..0075efb 100644
--- a/seatd-launch/seatd-launch.c
+++ b/seatd-launch/seatd-launch.c
@@ -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;