Should a daemon, forked from a CGI script (whenever the CGI script is called and the daemon is not yet running), hang running (most of the time just waiting for a connection) all time, or should it be terminated as soon as there is no more data to process (to be restarted by the next CGI call)? (The process is a Perl script.)
This happens on FreeBSD.
The details of what I am going to implement are available at Writing a daemon behind CGI: WebSocket or long polling question.