in reply to Sharing a socket handle over multiple processes
You should close them in your parent, though as if both have a socket open, you may get results you do not expect.
You can use fcntl to control whether or not sockets close on exec (if your system implements fcntl and its close-on-exec).
|
|---|