X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=jcc.c;h=4a8c0e3b5aca8ba03f25a6e0043c31b006789548;hb=3b4c42fc99e2521e23f452a3cde320fa93f9f8cb;hp=e48ef4bf736a51f483ae00097474b01c00bf1987;hpb=d5d3fd1f377ae15fa794ad3df6a32c4a02dc7eeb;p=privoxy.git diff --git a/jcc.c b/jcc.c index e48ef4bf..4a8c0e3b 100644 --- a/jcc.c +++ b/jcc.c @@ -1,4 +1,4 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.56 2001/11/13 20:20:54 jongfoster Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 1.58 2001/11/30 23:37:24 jongfoster Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ @@ -33,6 +33,13 @@ const char jcc_rcs[] = "$Id: jcc.c,v 1.56 2001/11/13 20:20:54 jongfoster Exp $"; * * Revisions : * $Log: jcc.c,v $ + * Revision 1.58 2001/11/30 23:37:24 jongfoster + * Renaming the Win32 config file to config.txt - this is almost the + * same as the corresponding UNIX name "config" + * + * Revision 1.57 2001/11/16 00:47:43 jongfoster + * Changing the tty-disconnection code to use setsid(). + * * Revision 1.56 2001/11/13 20:20:54 jongfoster * Tabs->spaces, fixing a bug with missing {} around an if() * @@ -864,6 +871,7 @@ static void chat(struct client_state *csp) csp->ip_addr_str, http->cmd); } + /* Write the answer to the client */ if(rsp) { @@ -904,7 +912,7 @@ static void chat(struct client_state *csp) if(rsp) { - if ((write_socket(csp->cfd, rsp->head, n) != n) + if ((write_socket(csp->cfd, rsp->head, rsp->head_length) != rsp->head_length) || (write_socket(csp->cfd, rsp->body, rsp->content_length) != rsp->content_length)) { log_error(LOG_LEVEL_ERROR, "write to: %s failed: %E", http->host); @@ -1389,7 +1397,7 @@ int main(int argc, const char *argv[]) #elif !defined(_WIN32) "config" #else - "junkbstr.txt" + "config.txt" #endif ;