uds: fix bug in file descriptor array opening.
By not touching the event descriptor, uds is leaving the value as zero, resulting in polling on stdin. Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
3936316468
commit
2b819b6b76
1
uds.c
1
uds.c
|
@ -77,6 +77,7 @@ static int uds_open(struct transport *t, char *name, struct fdarray *fda,
|
||||||
uds->len = sizeof(sa);
|
uds->len = sizeof(sa);
|
||||||
|
|
||||||
chmod(name, UDS_FILEMODE);
|
chmod(name, UDS_FILEMODE);
|
||||||
|
fda->fd[FD_EVENT] = -1;
|
||||||
fda->fd[FD_GENERAL] = fd;
|
fda->fd[FD_GENERAL] = fd;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue