Index: trunk/Ohana/src/opihi/pcontrol/JobOps.c
===================================================================
--- trunk/Ohana/src/opihi/pcontrol/JobOps.c	(revision 28242)
+++ trunk/Ohana/src/opihi/pcontrol/JobOps.c	(revision 29540)
@@ -195,5 +195,5 @@
 }
 
-IDtype AddJob (char *hostname, JobMode mode, int timeout, int argc, char **argv) {
+IDtype AddJob (char *hostname, JobMode mode, int timeout, int argc, char **argv, int Nxhosts, char **xhosts) {
 
   int JobID;
@@ -228,4 +228,7 @@
   job[0].host     = NULL;
 
+  job[0].xhosts = xhosts;
+  job[0].Nxhosts = Nxhosts;
+
   JobID = job[0].JobID;
 
@@ -257,4 +260,9 @@
   FREE (job[0].argv);
 
+  for (i = 0; i < job[0].Nxhosts; i++) {
+    FREE (job[0].xhosts[i]);
+  }
+  FREE (job[0].xhosts);
+
   FreeIOBuffer (&job[0].stdout_buf.buffer);
   FreeIOBuffer (&job[0].stderr_buf.buffer);
