summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2010-10-06 17:43:50 -0400
committerRay Strode <rstrode@redhat.com>2010-10-06 17:43:50 -0400
commit9de731ed29db4670c1641aedd945c56fd1a3feed (patch)
tree8fc123a6ac8fb0d78b63faa915768913b112d211 /src/client
parentda723a30336df5246bf163096e84890d1250aa5b (diff)
utils: add support for "trimmed abstract" sockets
Right now plymouth listens on an abstract socket with a name that has a bunch of trailing NUL bytes. These zeroes uglify the output of /proc/net/unix among other things. This commit adds support for a new "trimmed abstract" socket type, which drops the zeroes. A subsequent commit will actually change plymouthd to use the new api.
Diffstat (limited to 'src/client')
-rw-r--r--src/client/ply-boot-client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/ply-boot-client.c b/src/client/ply-boot-client.c
index 48f32583..5fe30132 100644
--- a/src/client/ply-boot-client.c
+++ b/src/client/ply-boot-client.c
@@ -179,8 +179,9 @@ ply_boot_client_connect (ply_boot_client_t *client,
assert (client->disconnect_handler == NULL);
assert (client->disconnect_handler_user_data == NULL);
- client->socket_fd =
- ply_connect_to_unix_socket (PLY_BOOT_PROTOCOL_SOCKET_PATH + 1, true);
+ client->socket_fd =
+ ply_connect_to_unix_socket (PLY_BOOT_PROTOCOL_SOCKET_PATH + 1,
+ PLY_UNIX_SOCKET_TYPE_ABSTRACT);
if (client->socket_fd < 0)
return false;