##// END OF EJS Templates
chg: make connect debug message less repetitive...
Jun Wu -
r28769:222f4829 default
parent child Browse files
Show More
@@ -236,6 +236,7 b' static hgclient_t *retryconnectcmdserver'
236 236 static const struct timespec sleepreq = {0, 10 * 1000000};
237 237 int pst = 0;
238 238
239 debugmsg("try connect to %s repeatedly", opts->sockname);
239 240 for (unsigned int i = 0; i < 10 * 100; i++) {
240 241 hgclient_t *hgc = hgc_open(opts->sockname);
241 242 if (hgc)
@@ -271,6 +272,7 b' static hgclient_t *connectcmdserver(stru'
271 272 {
272 273 const char *sockname = opts->redirectsockname[0] ?
273 274 opts->redirectsockname : opts->sockname;
275 debugmsg("try connect to %s", sockname);
274 276 hgclient_t *hgc = hgc_open(sockname);
275 277 if (hgc)
276 278 return hgc;
@@ -429,7 +429,6 b' hgclient_t *hgc_open(const char *socknam'
429 429 strncpy(addr.sun_path, sockname, sizeof(addr.sun_path));
430 430 addr.sun_path[sizeof(addr.sun_path) - 1] = '\0';
431 431
432 debugmsg("connect to %s", addr.sun_path);
433 432 int r = connect(fd, (struct sockaddr *)&addr, sizeof(addr));
434 433 if (r < 0) {
435 434 close(fd);
@@ -438,6 +437,7 b' hgclient_t *hgc_open(const char *socknam'
438 437 abortmsg("cannot connect to %s (errno = %d)",
439 438 addr.sun_path, errno);
440 439 }
440 debugmsg("connected to %s", addr.sun_path);
441 441
442 442 hgclient_t *hgc = mallocx(sizeof(hgclient_t));
443 443 memset(hgc, 0, sizeof(*hgc));
General Comments 0
You need to be logged in to leave comments. Login now