added reply handler

This commit is contained in:
2018-03-21 10:38:10 +00:00
parent 69e50af80f
commit f675835a11
6 changed files with 599 additions and 334 deletions

View File

@ -667,9 +667,12 @@ int main (int argc, char* argv[])
hcl_server_logbfmt (server, HCL_LOG_APP | HCL_LOG_FATAL, "server error[%d] - %js\n", hcl_server_geterrnum(server), hcl_server_geterrmsg(server));
}
close (xtn->logfd);
xtn->logfd = -1;
xtn->logfd_istty = 0;
if (xtn->logfd >= 0)
{
close (xtn->logfd);
xtn->logfd = -1;
xtn->logfd_istty = 0;
}
hcl_server_close (server);
return n;