No need to shutdown the clients if listen failed: There
can not possibly exist any connected clients at this point.
int ret;
listen_fd = para_listen(AF_UNSPEC, IPPROTO_TCP, conf.http_port_arg);
int ret;
listen_fd = para_listen(AF_UNSPEC, IPPROTO_TCP, conf.http_port_arg);
- if (listen_fd < 0) {
- http_shutdown_clients();
ret = mark_fd_nonblocking(listen_fd);
if (ret < 0) {
PARA_EMERG_LOG("%s\n", para_strerror(-ret));
ret = mark_fd_nonblocking(listen_fd);
if (ret < 0) {
PARA_EMERG_LOG("%s\n", para_strerror(-ret));