From 86691b3a573e90c8040ba5b8c0abf039a9da5270 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 1 Nov 2013 03:18:47 -0700 Subject: [PATCH] android: Allow connect() for property_set to fail --- android/cutils/properties.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/cutils/properties.h b/android/cutils/properties.h index 9b7a8a0ad..79515852b 100644 --- a/android/cutils/properties.h +++ b/android/cutils/properties.h @@ -39,7 +39,7 @@ static inline int property_set(const char *key, const char *value) if (connect(fd, (struct sockaddr *) &addr, sizeof(addr)) < 0) { close(fd); - return -1; + return 0; } len = snprintf(msg, sizeof(msg), "%s=%s", key, value); -- 2.47.3