Index: manager.c =================================================================== RCS file: /usr/cvsroot/asterisk/manager.c,v retrieving revision 1.96 diff -u -r1.96 manager.c --- manager.c 15 May 2005 03:21:51 -0000 1.96 +++ manager.c 17 May 2005 17:46:14 -0000 @@ -93,6 +93,8 @@ before timing out */ int res=0; struct pollfd fds[1]; + fds[0].fd = fd; + fds[0].events = POLLOUT; while(len) { /* Wait until writable */ res = poll(fds, 1, timeoutms); @@ -105,8 +107,6 @@ if (res < 0) res = 0; len -= res; s += res; - fds[0].fd = fd; - fds[0].events = POLLOUT; /* Wait until writable again */ res = poll(fds, 1, timeoutms); if (res < 1)