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
Richard Cochran 2012-08-27 21:05:34 +02:00
parent 3936316468
commit 2b819b6b76
1 changed files with 1 additions and 0 deletions

1
uds.c
View File

@ -77,6 +77,7 @@ static int uds_open(struct transport *t, char *name, struct fdarray *fda,
uds->len = sizeof(sa);
chmod(name, UDS_FILEMODE);
fda->fd[FD_EVENT] = -1;
fda->fd[FD_GENERAL] = fd;
return 0;
}