diff --git a/contrib/chg/chg.c b/contrib/chg/chg.c --- a/contrib/chg/chg.c +++ b/contrib/chg/chg.c @@ -252,7 +252,8 @@ static hgclient_t *retryconnectcmdserver cleanup: if (WIFEXITED(pst)) { - abortmsg("cmdserver exited with status %d", WEXITSTATUS(pst)); + debugmsg("cmdserver exited with status %d", WEXITSTATUS(pst)); + exit(WEXITSTATUS(pst)); } else if (WIFSIGNALED(pst)) { abortmsg("cmdserver killed by signal %d", WTERMSIG(pst)); } else {