You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by Jim Jagielski <ji...@hyperreal.com> on 1996/04/02 14:02:19 UTC

cvs commit: apache/src http_main.c http_protocol.c

jim         96/04/02 04:02:18

  Modified:    src       http_main.c http_protocol.c
  Log:
  Stop spinning child patch
  
  Revision  Changes    Path
  1.19      +1 -0      apache/src/http_main.c
  
  Index: http_main.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/http_main.c,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -C3 -r1.18 -r1.19
  *** http_main.c	1996/04/01 23:03:29	1.18
  --- http_main.c	1996/04/02 12:02:15	1.19
  ***************
  *** 294,299 ****
  --- 294,300 ----
        char errstr[MAX_STRING_LEN];
        void *dirconf;
    
  +     signal(SIGPIPE, SIG_IGN);		/* Block SIGPIPE */
        if (alarms_blocked) {
    	alarm_pending = 1;
    	return;
  
  
  
  1.15      +1 -1      apache/src/http_protocol.c
  
  Index: http_protocol.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/http_protocol.c,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -C3 -r1.14 -r1.15
  *** http_protocol.c	1996/03/30 07:16:41	1.14
  --- http_protocol.c	1996/04/02 12:02:16	1.15
  ***************
  *** 720,726 ****
    	
            while(n && !r->connection->aborted) {
                w=bwrite(c->client, &buf[o], n);
  ! 	    if (w)
    	        reset_timeout(r); /* reset timeout after successfule write */
                n-=w;
                o+=w;
  --- 720,726 ----
    	
            while(n && !r->connection->aborted) {
                w=bwrite(c->client, &buf[o], n);
  ! 	    if (w > 0)
    	        reset_timeout(r); /* reset timeout after successfule write */
                n-=w;
                o+=w;