From ca83e0132b560a1d28acbd0784496ee7c07a6863 Mon Sep 17 00:00:00 2001 From: Fred Wright Date: Sat, 4 Mar 2017 13:00:13 -0800 Subject: 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. --- os_compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os_compat.c') 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; } -- cgit v1.2.1