gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] RFC: libgps on Windows


From: Fred Wright
Subject: Re: [gpsd-dev] RFC: libgps on Windows
Date: Thu, 3 Mar 2016 15:38:56 -0800 (PST)

On Fri, 26 Feb 2016, Robert Norris wrote:

[...]
> Some functionality is outside the scope of libgps or libgpsd but used in 
> binaries, e.g. daemon()
[...]

Making daemonization support optional would be useful for another reason -
on OSX any use of daemon() produces a deprecation warning, since the only
supported way to run daemons on OSX is as children of launchd rather than
as detached processes.  So far Apple hasn't removed daemon() altogether,
but it's not impossible.

I'd suggest making this optional via an scons build option that maps to a
compiler flag, which would have the following effects in the disabled
state:

1) The -N option would be retained for command-line compatibility, but it
would be effectively always on.

2) Any code that's normally only reachable without -N (presumably
including any calls on daemon()) would be conditionaled out.

3) For thoroughness, the help text and/or man page might be tweaked to
list it as a NOP retained for compatibility.

Note that gpsfake already uses -N mode, so it wouldn't need to change.

Fred Wright



reply via email to

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