aboutsummaryrefslogtreecommitdiff
path: root/mksock.c
diff options
context:
space:
mode:
Diffstat (limited to 'mksock.c')
-rw-r--r--mksock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mksock.c b/mksock.c
index 18a6d67..6f4028e 100644
--- a/mksock.c
+++ b/mksock.c
@@ -28,6 +28,8 @@ int mksock(const char *path)
strcpy(un.sun_path, path);
+ unlink(un.sun_path);
+
if (bind(fd, (struct sockaddr *)&un, sizeof(un))) {
errmsg ="bind";
goto fail_errno;