bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

unistd.h: daemon


From: Simon Josefsson
Subject: unistd.h: daemon
Date: Sun, 21 Nov 2010 21:57:55 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux)

Glibc has a 'daemon' function, which is from BSD, however it is not
documented in the glibc manual [1] and it is not in POSIX.  Mike noticed
that InetUtils is using it:

http://thread.gmane.org/gmane.comp.gnu.inetutils.bugs/3040/focus=3041

This begs the question of whether using the 'daemon' interface is a good
idea or not.  I see two approaches:

1) Regard the 'daemon' interface as broken, and let InetUtils call a
different function, e.g., 'daemonize', and implement it in InetUtils
(which already contains an implementation, so that is easy).

2) Consider the 'daemon' interface as working, and provide a gnulib
module for it so that it can be used interoperable.

Anyone with opinions on the 'daemon' interface?  Should we provide a
gnulib module for it?

/Simon

[1] http://sourceware.org/bugzilla/show_bug.cgi?id=12251



reply via email to

[Prev in Thread] Current Thread [Next in Thread]