[Jprogramming] fork() sockets on linux

Joe Bogner joebogner at gmail.com
Wed Jan 22 00:45:21 UTC 2014


Has anyone tackled using fork() with sockets on linux to enable
parallel request handling?

On the surface it looks like 2:!2 won't do what I need it to do
(https://github.com/openj/core/blob/master/xh.c) since it appears to
shell out the supplied program instead of providing a facility to keep
processing in the forked process.

I have an implementation on windows and wanted to support it on linux as well.

http://www.jsoftware.com/help/dictionary/dx002.htm


More information about the Programming mailing list