summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorFred Wright <fw@fwright.net>2019-03-21 19:13:14 -0700
committerFred Wright <fw@fwright.net>2019-03-21 20:04:46 -0700
commit3d1b7493c58f80a93b9bbec33717fd3055841ae1 (patch)
tree66d3c5d56c9230c5b7b9637f2d10c99e60b4da8f /man
parentd7a1c8986331dc934af319249d32dfc8a0b024be (diff)
downloadgpsd-3d1b7493c58f80a93b9bbec33717fd3055841ae1.tar.gz
os_compat: OSX daemon() warning fix.
OSX considers the daemon() call deprecated. This is mainly because real OSX daemons are expected to run as launchd children, but since some programs here daemonize for convenience, and since self-daemonization is sometimes useful for testing, we can't really get rid of it. Previous work consolidated daemon() calls into os_compat, reducing the number of warnings, and this change gets rid of them altogether. There doesn't seem to be any easy way to avoid the warnings except by avoiding the normal declaration of daemon(), which is what we do here by duplicating it locally. If daemon() ever actually disappears, it could be reintroduced via the usual double-fork approach. TESTED: Ran "build-all check" as well as testing daemonization on a Mac Pro 10.9 and 10.14, MacBook Pro 10.9, PowerBook 10.5, and VMs for OSX 10.5-10.13, Ubuntu 14.04, CentOS 7, Fedora 25, FreeBSD 10.3, OpenBSD 5.6 (64- and 32-bit), and NetBSD 6.1.5.
Diffstat (limited to 'man')
0 files changed, 0 insertions, 0 deletions