/[monit]/monit/net.c
ViewVC logotype

Diff of /monit/net.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.23 by hauk, Wed Jul 30 02:24:35 2003 UTC revision 1.24 by hauk, Wed Jul 30 06:28:08 2003 UTC
# Line 503  int sock_write(int socket, void *buffer, Line 503  int sock_write(int socket, void *buffer,
503    } while(n == -1 && errno == EINTR);    } while(n == -1 && errno == EINTR);
504        
505    if(n == -1 && (errno == EAGAIN || errno == EWOULDBLOCK)) {    if(n == -1 && (errno == EAGAIN || errno == EWOULDBLOCK)) {
506      if(can_write(socket, 5) <= 0) {      if(can_write(socket, 1) <= 0) {
507        return -1;        return -1;
508      }      }
509      do {      do {
# Line 558  int sock_read(int socket, void *buffer, Line 558  int sock_read(int socket, void *buffer,
558    
559    
560  /*  /*
561   * Do a non blocking connect, timeout of not connected within 5 seconds   * Do a non blocking connect, timeout if not connected within 5 seconds
562   */   */
563  static int do_connect(int s, const struct sockaddr *addr, socklen_t addrlen) {  static int do_connect(int s, const struct sockaddr *addr, socklen_t addrlen) {
564    

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26