Skip to content

Commit 639e70e

Browse files
author
Jérôme Lebel
committed
close all sockets before while stoping, so we can open the socket again
1 parent 875726b commit 639e70e

File tree

1 file changed

+4
-0
lines changed
  • Frameworks/srelay-0.4.7p3

1 file changed

+4
-0
lines changed

Frameworks/srelay-0.4.7p3/util.c

+4
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,10 @@ void reapchild()
272272

273273
void cleanup()
274274
{
275+
int i;
276+
for ( i = 0; i < serv_sock_ind; i++ ) {
277+
close(serv_sock[i]);
278+
}
275279
/* unlink PID file */
276280
if (pidfile != NULL) {
277281
setreuid(PROCUID, 0);

0 commit comments

Comments
 (0)