From 2b819b6b76eb89fdf1735b42d30399368f13c0c8 Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Mon, 27 Aug 2012 21:05:34 +0200 Subject: [PATCH] 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 --- uds.c | 1 + 1 file changed, 1 insertion(+) diff --git a/uds.c b/uds.c index 4ca5590..0d114c3 100644 --- a/uds.c +++ b/uds.c @@ -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; }