Permalink
Browse files

close all sockets before while stoping, so we can open the socket again

  • Loading branch information...
1 parent 875726b commit 639e70e1116e77603ad6535a8ed8b39500eff34a Jérôme Lebel committed Oct 3, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 Frameworks/srelay-0.4.7p3/util.c
@@ -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);

0 comments on commit 639e70e

Please sign in to comment.