mirror of
https://github.com/yrutschle/sslh.git
synced 2025-06-08 03:12:32 +03:00
make echosrv independant from common macros
This commit is contained in:
parent
4f0f5017bc
commit
16bf1a6aca
@ -100,7 +100,10 @@ void tcp_echo(struct listen_endpoint* listen_socket)
|
|||||||
{
|
{
|
||||||
while (1) {
|
while (1) {
|
||||||
int in_socket = accept(listen_socket->socketfd, 0, 0);
|
int in_socket = accept(listen_socket->socketfd, 0, 0);
|
||||||
CHECK_RES_DIE(in_socket, "accept");
|
if (in_socket == -1) {
|
||||||
|
perror("tcp_echo:accept");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
if (!fork())
|
if (!fork())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user