[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] Re: Patch for socket to close on engine exit
From: |
Aleksey Demakov |
Subject: |
[Pnet-developers] Re: Patch for socket to close on engine exit |
Date: |
Thu, 23 Nov 2006 18:31:14 +0600 |
Hi Heiko,
2006/11/22, address@hidden <address@hidden>:
With this fix, sockets get closed if killing the app.
I am not sure if this fix is the best way to solve your problem.
There may be applications, albeit rarely, that may need to
pass an open socket to a child process.
It seems that on windows sockets are closed automatically.
So with your fix we emulate windows behavior. It might be
good for compatibility. However there may be applications
that want to use native features of the platform they run on.
Other possible solutions are:
* expose fcntl function through pnetlib so that an application
could call it when needed.
* add some global option (environment variable or something
else) that makes pnet behave windows-like (close sockets
automatically on exec) or natively.
* both of above.
Regards,
Aleksey