sun.sun_family = AF_UNIX;
strncpy(sun.sun_path, pathname, strlen(pathname));
+ /* Unlink the old file if present */
+ (void) unlink(pathname);
ret = bind(fd, (struct sockaddr *) &sun, sizeof(sun));
if (ret < 0) {
perror("bind");
char tmp[CMSG_SPACE(sizeof_fds)];
/*
- * Note: the consumerd receiver only supports receiving one FD at a
- * time for now.
+ * Note: the consumerd receiver only supports receiving one FD per
+ * message.
*/
assert(nb_fd == 1);