Skip to content

Commit

Permalink
close all sockets before while stoping, so we can open the socket again
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérôme Lebel committed Oct 3, 2010
1 parent 875726b commit 639e70e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Frameworks/srelay-0.4.7p3/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@ void reapchild()

void cleanup()
{
int i;
for ( i = 0; i < serv_sock_ind; i++ ) {
close(serv_sock[i]);
}
/* unlink PID file */
if (pidfile != NULL) {
setreuid(PROCUID, 0);
Expand Down

0 comments on commit 639e70e

Please sign in to comment.