git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb6c05f
)
correct fd_num setting
author
Miloš Mulač
<mulac@civ.zcu.cz>
Thu, 26 Feb 2009 16:21:53 +0000
(16:21 +0000)
committer
Miloš Mulač
<mulac@civ.zcu.cz>
Thu, 26 Feb 2009 16:21:53 +0000
(16:21 +0000)
org.glite.lb.client/src/notification.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.client/src/notification.c
b/org.glite.lb.client/src/notification.c
index
b0d3849
..
242b2eb
100644
(file)
--- 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;