[BACK]Return to proto.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cvs

Diff for /src/usr.bin/cvs/Attic/proto.c between version 1.32 and 1.33

version 1.32, 2004/12/08 05:36:14 version 1.33, 2004/12/08 16:07:43
Line 194 
Line 194 
         int argc, infd[2], outfd[2], errfd[2];          int argc, infd[2], outfd[2], errfd[2];
         char *argv[16], *cvs_server_cmd, *vresp;          char *argv[16], *cvs_server_cmd, *vresp;
   
   
           if (root->cr_flags & CVS_ROOT_CONNECTED) {
                   cvs_log(LP_NOTICE, "already connected to CVSROOT");
                   return (0);
           }
   
         if (pipe(infd) == -1) {          if (pipe(infd) == -1) {
                 cvs_log(LP_ERRNO,                  cvs_log(LP_ERRNO,
                     "failed to create input pipe for client connection");                      "failed to create input pipe for client connection");
Line 338 
Line 344 
   
         cvs_log(LP_DEBUG, "connected to %s", root->cr_host);          cvs_log(LP_DEBUG, "connected to %s", root->cr_host);
   
           root->cr_flags |= CVS_ROOT_CONNECTED;
   
         return (0);          return (0);
 }  }
   
Line 350 
Line 358 
 void  void
 cvs_disconnect(struct cvsroot *root)  cvs_disconnect(struct cvsroot *root)
 {  {
           if (!(root->cr_flags & CVS_ROOT_CONNECTED))
                   return;
   
         cvs_log(LP_DEBUG, "closing connection to %s", root->cr_host);          cvs_log(LP_DEBUG, "closing connection to %s", root->cr_host);
         if (root->cr_srvin != NULL) {          if (root->cr_srvin != NULL) {
                 (void)fclose(root->cr_srvin);                  (void)fclose(root->cr_srvin);
Line 359 
Line 370 
                 (void)fclose(root->cr_srvout);                  (void)fclose(root->cr_srvout);
                 root->cr_srvout = NULL;                  root->cr_srvout = NULL;
         }          }
   
           root->cr_flags &= ~CVS_ROOT_CONNECTED;
 }  }
   
   

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33