Ok, If I use ProcessExplorer for example (anither great tool), I see
each time I run/stop a sequence of the client test program I'm losing
a lot of handles on my server process
But I don't understand where are these leaks !?
I've done all the close() of socket in the fork/children (I hope)
Pleas
Hi,
thanks for the advices, and sorry for the VC++ project
So, I added sigchld() event and replaced shutdown() by close()
It works cool
But now I try to change server code to use select() for my children
and I have the same behaviour
(anyway, it takes more "client queries" to hang...)
so
On Sep 16 21:56, znort wrote:
> while(1)
> {
> errno=0;
>
> sock = accept(sd, NULL,NULL);
>
> if (errno==0)
> {
> rf = fork();
>
> /* father will still listener forever */
> if (!rf)
> {
> fcntl(sock, F_SETFL, f & (~O_NONBLOCK) );
>
>
Hello,
Sorry, I've not been very accurate in my last post so, this time, I'll
post the test client/server
I try to make a little client/server tcp.
server side
#include
#include
#include
#include
#include
#ifdef SUN
#include
#else
#include
#endif
#include
#include
#incl
4 matches
Mail list logo