Content-Length: 267073 | pFad | http://github.com/postgrespro/postgres_cluster/commit/528024dd88a14f7b2f4dfa77c78a6aa7c9fb8100

5E Add actual socket closing into close_socket function. · postgrespro/postgres_cluster@528024d · GitHub
Skip to content

Commit 528024d

Browse files
committed
Add actual socket closing into close_socket function.
1 parent 94d09aa commit 528024d

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
int ShubReadSocketEx(int sd, void* buf, int min_size, int max_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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/528024dd88a14f7b2f4dfa77c78a6aa7c9fb8100

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy