in reply to Re: TCP Server Exits Loop and Crashes with error
in thread TCP Server Exits Loop and Crashes with error

The only thing left to fix is now that I'm using child processes, they are not closing themselves. Any thoughts on how to make them close nicely?

Use a method of forking that returns the pid, store them in an array, and do a kill 9 (or 15) on them when you want them gone? You may need to do a killfam on the pid just in case you get an extraneous shell pid as a parent to your spawned child pid.


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku
  • Comment on Re^2: TCP Server Exits Loop and Crashes with error