Show More
@@ -29,4 +29,4 b' The following variables are available fo' | |||||
29 | * CHGDEBUG enables debug messages. |
|
29 | * CHGDEBUG enables debug messages. | |
30 | * CHGSOCKNAME specifies the socket path of the background cmdserver. |
|
30 | * CHGSOCKNAME specifies the socket path of the background cmdserver. | |
31 | * CHGTIMEOUT specifies how many seconds chg will wait before giving up |
|
31 | * CHGTIMEOUT specifies how many seconds chg will wait before giving up | |
32 |
connecting to a cmdserver. If it is 0, chg will wait forever. Default: |
|
32 | connecting to a cmdserver. If it is 0, chg will wait forever. Default: 60 |
@@ -250,7 +250,7 b' static hgclient_t *retryconnectcmdserver' | |||||
250 |
|
250 | |||
251 | debugmsg("try connect to %s repeatedly", opts->sockname); |
|
251 | debugmsg("try connect to %s repeatedly", opts->sockname); | |
252 |
|
252 | |||
253 |
unsigned int timeoutsec = |
|
253 | unsigned int timeoutsec = 60; /* default: 60 seconds */ | |
254 | const char *timeoutenv = getenv("CHGTIMEOUT"); |
|
254 | const char *timeoutenv = getenv("CHGTIMEOUT"); | |
255 | if (timeoutenv) |
|
255 | if (timeoutenv) | |
256 | sscanf(timeoutenv, "%u", &timeoutsec); |
|
256 | sscanf(timeoutenv, "%u", &timeoutsec); |
General Comments 0
You need to be logged in to leave comments.
Login now