+}
+
diff --git a/tools/xenpmd/xenpmd.c b/tools/xenpmd/xenpmd.c
-index 28de744..cc6a47f 100644
+index 28de744..db8e292 100644
--- a/tools/xenpmd/xenpmd.c
+++ b/tools/xenpmd/xenpmd.c
@@ -40,10 +40,11 @@
/* Borrowed daemonize from xenstored - Initially written by Stevens. */
static void daemonize(void)
{
-@@ -493,24 +513,56 @@ static void daemonize(void)
+@@ -493,24 +513,53 @@ static void daemonize(void)
umask(0);
}
+ */
+static void *worker_thread_routine(void *arg)
{
- #ifndef RUN_STANDALONE
- daemonize();
- #endif
+-#ifndef RUN_STANDALONE
+- daemonize();
+-#endif
xs = (struct xs_handle *)xs_daemon_open();
- if ( xs == NULL )
- return -1;