[vlc-devel] [PATCH] libvlc: daemon() is deprecated on recent OS X

David Fuhrmann david.fuhrmann at gmail.com
Wed Nov 5 22:55:56 CET 2014


Am 05.11.2014 um 20:42 schrieb Felix Paul Kühne <fkuehne at videolan.org>:

>> 
>> On 05 Nov 2014, at 20:32, Sean McGovern <gseanmcg at gmail.com> wrote:
>> 
>> ---
>> src/libvlc.c | 5 +++++
>> 1 file changed, 5 insertions(+)
>> 
>> diff --git a/src/libvlc.c b/src/libvlc.c
>> index 946ce2e..aaadfd1 100644
>> --- a/src/libvlc.c
>> +++ b/src/libvlc.c
>> @@ -196,6 +196,11 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
>>        return VLC_ENOMOD;
>>    }
>> 
>> +/* Darwin does have daemon(), but it has been deprecated since OS X 10.5 */
> 
> Well, it’s true, that it was deprecated in 2007, but then again, it still works with the latest version of OS X and is therefore just an annoying compiler warning, so IMO, we should continue having this mode enabled on the Mac.

Yes, the deamon man page states: "On Mac OS X, the use of this API is discouraged in favor of using launchd(8).“ Of course they want to encourage their own launch services, but from that I do not see any technical reason for not using deamon anymore.

Best regards,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20141105/8d3a6e82/attachment.html>


More information about the vlc-devel mailing list