inetd or super-server in D :-)
Tristam MacDonald
swiftcoder at gmail.com
Fri Sep 19 09:50:23 PDT 2008
Robert wrote:
> -after "fork" do I just trigger "exec" with proper server as an argument of the function ?
In theory yes, this is how mush *nix daemons are implemented. The
launcher program forks, execs the server program in the child process,
and then exits from the parent process.
Note that the server process will share the parent proccess'
stdin/stdout/stderr, unless you explicitly change them.
More information about the Digitalmars-d
mailing list