Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit528024d

Browse files
committed
Add actual socket closing into close_socket function.
1 parent94d09aa commit528024d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎contrib/arbiter/sockhub/sockhub.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ static void close_socket(Shub* shub, int fd)
150150
#else
151151
FD_CLR(fd,&shub->inset);
152152
#endif
153+
close(fd);
153154
}
154155

155156
intShubReadSocketEx(intsd,void*buf,intmin_size,intmax_size)
@@ -252,6 +253,7 @@ static void reconnect(Shub* shub)
252253
return;
253254
}
254255
}
256+
close(shub->output);
255257
}
256258
}
257259

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp