Sna connected and fork a new process, how to close the connection?
-
-
Answer:
Terrific answer above mine. Time for a vote.
bron110 at Yahoo! Answers Visit the source
Other answers
Terrific answer above mine. Time for a vote.
Sanitize...
What you should be doing, if were following good programming practice, is that you close the socket in parent process that is supposed to be used in child process. This will remove so many issues. So immediately after the fork call, check the status returned by the call. If its parent, don't wait long before you close this un used socket. The immediate statement must be to close the socket in parent.
KS
What you should be doing, if were following good programming practice, is that you close the socket in parent process that is supposed to be used in child process. This will remove so many issues. So immediately after the fork call, check the status returned by the call. If its parent, don't wait long before you close this un used socket. The immediate statement must be to close the socket in parent.
KS
Related Q & A:
- How to find connected components of a random graph?Best solution by Mathematics
- How to close URL connection?Best solution by Stack Overflow
- How to Close a Modal?Best solution by Stack Overflow
- How to create new process as its own parent process?Best solution by Stack Overflow
- To close a yahoo email and open a new one?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.