From 752c435ec6e6da99b9ea5eb60af4d558390dd0d5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milo=C5=A1=20Mula=C4=8D?= Date: Thu, 26 Feb 2009 16:21:53 +0000 Subject: [PATCH] correct fd_num setting --- org.glite.lb.client/src/notification.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.glite.lb.client/src/notification.c b/org.glite.lb.client/src/notification.c index b0d3849..242b2eb 100644 --- a/org.glite.lb.client/src/notification.c +++ b/org.glite.lb.client/src/notification.c @@ -585,7 +585,7 @@ int edg_wll_NotifReceive( /* NotifReceive */ { - int i, j, ret, fd_num = ctx->connNotif->connOpened + 1; + int i, j, ret, fd_num; struct _fd_map { struct pollfd pollfds[fd_num]; int index[fd_num]; @@ -611,6 +611,7 @@ int edg_wll_NotifReceive( } start: + fd_num = ctx->connNotif->connOpened + 1; fd_map.pollfds[0].fd = fd; fd_map.pollfds[0].events = POLLIN; fd_map.index[0] = -1; @@ -712,7 +713,6 @@ start: ctx->p_tmp_timeout = tv; start_time = check_time; - fd_num--; if (broken) { edg_wll_SetError(ctx,ENOTCONN,"IL connection broken in middle of message"); goto err; -- 1.8.2.3