in reply to Socket descriptor passed across fork -- hanging
See my code.
After the fork(), the parent closes the active socket because the parent does not talk to anybody - it only listens for new connections.
After the fork(), the child closes the passive socket because the child doesn't listen for new connections - it only talks on the active socket to the current client.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Socket descriptor passed across fork -- hanging
by dd-b (Pilgrim) on Oct 13, 2011 at 15:23 UTC | |
by Marshall (Canon) on Oct 13, 2011 at 16:28 UTC |