From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:60399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QS835-0006rb-25 for qemu-devel@nongnu.org; Thu, 02 Jun 2011 09:34:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QS831-0001SJ-JJ for qemu-devel@nongnu.org; Thu, 02 Jun 2011 09:34:54 -0400 Received: from mail-pz0-f45.google.com ([209.85.210.45]:42825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QS830-0001RG-FI for qemu-devel@nongnu.org; Thu, 02 Jun 2011 09:34:51 -0400 Received: by pzk30 with SMTP id 30so429026pzk.4 for ; Thu, 02 Jun 2011 06:34:49 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <8238047B-5274-4618-8781-7417F7AF2238@web.de> References: <1306982755-19553-1-git-send-email-cerbere@gmail.com> <8238047B-5274-4618-8781-7417F7AF2238@web.de> From: Alexandre Raymond Date: Thu, 2 Jun 2011 09:34:29 -0400 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC PATCH] Darwin: Fix compilation warning regarding the deprecated daemon() function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Andreas_F=C3=A4rber?= Cc: Blue Swirl , QEMU Developers Hi Andreas, On Thu, Jun 2, 2011 at 8:09 AM, Andreas F=C3=A4rber wrote: > Am 02.06.2011 um 04:45 schrieb Alexandre Raymond: > >> On OSX > 10.5, daemon() is deprecated, resulting int he following warnin= g: > >>=3D 10.5 > > http://developer.apple.com/library/mac/#documentation/Darwin/Reference/Ma= nPages/man3/daemon.3.html > >> ----8<---- >> qemu-nbd.c: In function =E2=80=98main=E2=80=99: >> qemu-nbd.c:371: warning: =E2=80=98daemon=E2=80=99 is deprecated (declare= d at >> /usr/include/stdlib.h:289) >> ----8<---- >> >> The following trick, used in mDNSResponder, takes care of this warning: >> >> http://www.opensource.apple.com/source/mDNSResponder/mDNSResponder-258.1= 8/mDNSPosix/PosixDaemon.c > > Even if apparently applied by Apple themselves, I consider it a bad hack = for > curing symptoms. > > http://developer.apple.com/library/mac/technotes/tn2083/_index.html#//app= le_ref/doc/uid/DTS10003794-CH1-SUBSECTION64 I agree that this is a nasty hack. It's really up to you guys. I can try to modify this patch to use launchd instead. Alexandre