aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-01 01:35:53 +0100
committerMax Kellermann <max@duempel.org>2009-03-01 01:35:53 +0100
commiteb64f6542f71cec3dc33a14186443943b207c3ad (patch)
treeb8d1f32fdeecd43084c65aa129f4585ef85f261f /src
parentb4f84fab349525aa5a4ea364509a4d9ec9db47f4 (diff)
downloadmpd-eb64f6542f71cec3dc33a14186443943b207c3ad.tar.gz
mpd-eb64f6542f71cec3dc33a14186443943b207c3ad.tar.xz
mpd-eb64f6542f71cec3dc33a14186443943b207c3ad.zip
daemon: disable daemonize_detach() on WIN32
Diffstat (limited to '')
-rw-r--r--src/daemon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/daemon.c b/src/daemon.c
index 309463cd5..4df059544 100644
--- a/src/daemon.c
+++ b/src/daemon.c
@@ -130,6 +130,7 @@ daemonize_set_user(void)
#endif
}
+#ifndef G_OS_WIN32
static void
daemonize_detach(void)
{
@@ -160,6 +161,7 @@ daemonize_detach(void)
g_debug("daemonized!");
}
+#endif
void
daemonize(bool detach)
@@ -188,7 +190,7 @@ daemonize(bool detach)
}
#else
/* no daemonization on WIN32 */
- (void)options;
+ (void)detach;
#endif
}