diff options
author | Kenny Levinsen <kl@kl.wtf> | 2022-02-21 11:44:27 +0100 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2022-02-21 12:02:31 +0100 |
commit | 32d06482d3aeaac166d76912fcba53fa8dfb2fcf (patch) | |
tree | 21e7790e61f975a632a9b918c2f7f34317935604 | |
parent | 0864f6a3ac8ca8263490269ecc7fdf4c1cd59850 (diff) | |
download | seatd-32d06482d3aeaac166d76912fcba53fa8dfb2fcf.tar.xz |
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.
-rw-r--r-- | seatd-launch/seatd-launch.c | 6 |
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; |