gimp but for windows: a wayland compositor
git clone https://github.com/m-col/wimp
Files | Refs | Readme

Commit a9235752ae540d0f96073c83b8a690f5c9e58f34
Parent: 5bee7ec4312ac7afbcfd55469500d2e93456a7ae
Author: mcol <mcol@posteo.net>
Date: 2021-02-21 21:34:03 +0000
Committer: mcol <mcol@posteo.net>
Committed: 2021-02-21 21:34:03 +0000

remove socket when starting up

src/ipc.c Modified

@@ -21,7 +21,7 @@
     if (mask & WL_EVENT_READABLE) {
 	int fd = accept(sock, NULL, NULL);
 	if (fd == -1) {
-	    wlr_log(WLR_ERROR, "Failed accept connection from client.");
+	    wlr_log(WLR_ERROR, "Failed to accept connection from client.");
 	    return 0;
 	}
 	ssize_t len = recv(fd, buffer, sizeof(buffer) - 1, 0);
@@ -46,6 +46,7 @@
     struct sockaddr_un addr;
     snprintf(addr.sun_path, sizeof(addr.sun_path), SOCKET_PATH, display);
     addr.sun_family = AF_UNIX;
+    unlink(addr.sun_path);
 
     if (bind(sock, (struct sockaddr *) &addr, sizeof(addr)) == -1) {
 	wlr_log(WLR_ERROR, "Failed to bind IPC socket.");