You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by da...@apache.org on 2001/02/27 05:20:41 UTC

cvs commit: jakarta-tomcat/src/native/mod_jk/common jk_connect.c

danmil      01/02/26 20:20:41

  Modified:    src/native/mod_jk/common jk_connect.c
  Log:
  Fixed bug which was bombing if a socket descriptor numbered 0 was created.
  
  Submitted by: Kevin Seguin (seguin@motive.com)
  
  Revision  Changes    Path
  1.3       +2 -2      jakarta-tomcat/src/native/mod_jk/common/jk_connect.c
  
  Index: jk_connect.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/native/mod_jk/common/jk_connect.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- jk_connect.c	2000/11/10 18:48:50	1.2
  +++ jk_connect.c	2001/02/27 04:20:40	1.3
  @@ -57,7 +57,7 @@
    * Description: Socket/Naming manipulation functions                       *
    * Author:      Gal Shachor <sh...@il.ibm.com>                           *
    * Based on:    Various Jserv files                                        *
  - * Version:     $Revision: 1.2 $                                               *
  + * Version:     $Revision: 1.3 $                                               *
    ***************************************************************************/
   
   
  @@ -108,7 +108,7 @@
       jk_log(l, JK_LOG_DEBUG, "Into jk_open_socket\n");
   
       sock = socket(AF_INET, SOCK_STREAM, 0);
  -    if(sock > 0) {
  +    if(sock > -1) {
           int ret;
           /* Tries to connect to JServ (continues trying while error is EINTR) */
           do {