aboutsummaryrefslogtreecommitdiffstats
path: root/src/Daemon.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Daemon.hxx')
-rw-r--r--src/Daemon.hxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/Daemon.hxx b/src/Daemon.hxx
index ecd090d5b..fe5681511 100644
--- a/src/Daemon.hxx
+++ b/src/Daemon.hxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2013 The Music Player Daemon Project
+ * Copyright (C) 2003-2014 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -81,11 +81,19 @@ daemonize_set_user(void)
#ifndef WIN32
void
-daemonize(bool detach);
+daemonize_begin(bool detach);
#else
static inline void
-daemonize(bool detach)
+daemonize_begin(bool detach)
{ (void)detach; }
#endif
+#ifndef WIN32
+void
+daemonize_commit();
+#else
+static inline void
+daemonize_commit() {}
+#endif
+
#endif