Revert "use force_close() on server to avoid descriptor leaks"

This reverts commit f622f6696c.
This commit is contained in:
Nikos Mavrogiannopoulos
2014-10-02 09:36:22 +02:00
parent 3a455f4178
commit ef7fb7d594
4 changed files with 23 additions and 34 deletions

View File

@@ -89,7 +89,7 @@ void ctl_handler_deinit(main_server_st * s)
if (s->ctl_fd >= 0) {
/*mslog(s, NULL, LOG_DEBUG, "closing unix socket connection");*/
force_close(s->ctl_fd);
close(s->ctl_fd);
/*remove(OCSERV_UNIX_NAME); */
}
}
@@ -653,7 +653,7 @@ static void ctl_handle_commands(main_server_st * s)
cleanup:
talloc_free(pool);
if (cfd != -1)
force_close(cfd);
close(cfd);
}
int ctl_handler_set_fds(main_server_st * s, fd_set * rd_set, fd_set * wr_set)