Diff between 6a83d146706c7dbdf7772fc65f5a4d84eddc594f and 56f7a456cc8b7d8fb1ebf0f3ed599f94bafe011d

Changed Files

File Additions Deletions Status
src/shared/mainloop-notify.c +1 -1 modified

Full Patch

diff --git a/src/shared/mainloop-notify.c b/src/shared/mainloop-notify.c
index 89a8800..1de714a 100644
--- a/src/shared/mainloop-notify.c
+++ b/src/shared/mainloop-notify.c
@@ -91,7 +91,7 @@ void mainloop_notify_init(void)
 	if (addr.sun_path[0] == '@')
 		addr.sun_path[0] = '\0';
 
-	if (bind(notify_fd, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
+	if (connect(notify_fd, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
 		close(notify_fd);
 		notify_fd = -1;
 		return;