summaryrefslogtreecommitdiff
path: root/os_compat.c
diff options
context:
space:
mode:
authorFred Wright <fw@fwright.net>2017-03-04 13:00:13 -0800
committerFred Wright <fw@fwright.net>2017-03-04 13:00:13 -0800
commitca83e0132b560a1d28acbd0784496ee7c07a6863 (patch)
treef9a35d62d0529ad166e4750657cd35811166b1cd /os_compat.c
parentc5e924f3dd1ae6ac89f5ed930e2a7c169a601a46 (diff)
downloadgpsd-ca83e0132b560a1d28acbd0784496ee7c07a6863.tar.gz
Changes error code from dummy os_daemon().
EPERM is closer to the truth than EINVAL in the case where daemonization isn't available at all. Some sort of generic "unsupported" error would be even better, but doesn't exist. TESTED: No. This is only expected to apply to Windows.
Diffstat (limited to 'os_compat.c')
-rw-r--r--os_compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os_compat.c b/os_compat.c
index 790aaf94..fa4d85b2 100644
--- a/os_compat.c
+++ b/os_compat.c
@@ -98,7 +98,7 @@ int os_daemon(int nochdir, int noclose)
int os_daemon(int nochdir, int noclose)
{
(void) nochdir; (void) noclose;
- errno = EINVAL;
+ errno = EPERM;
return -1;
}