On 2009/08/12 22:48, Mike Frysinger <vapier....@gmail.com> wrote: > however, there is still one use of fork() in the mpd source code in > the daemonize_detach() function. really this function should get > punted and daemonize() should simply call the C library's daemon(0,1). > the daemon() function has existed since BSD 4.4, so for all realistic > *nix targets, this function should be fine. > -mike
What is the advantage of daemon(), and what is the problem with fork()? daemon() is not defined in any standard. I'd like to avoid non-standard functions. Since we have to implement a fallback anyway, we cannot save a single line of source by using daemon(). Max ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Musicpd-dev-team mailing list Musicpd-dev-team@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team