Index: trunk/Ohana/src/opihi/pcontrol/CheckBusyJob.c
===================================================================
--- trunk/Ohana/src/opihi/pcontrol/CheckBusyJob.c	(revision 7917)
+++ trunk/Ohana/src/opihi/pcontrol/CheckBusyJob.c	(revision 8296)
@@ -9,4 +9,8 @@
   IOBuffer buffer;
   Host    *host;
+
+  /* we are checking a job which is currently busy.  it has been pulled from the
+     JOB_BUSY stack, and is linked to a host in the HOST_BUSY stack.  
+     XXX need to check on state of HOST on return */
 
   /** must have a valid host : if not? **/
@@ -28,6 +32,5 @@
 
     case PCLIENT_HUNG:
-      PutJob (job, PCONTROL_JOB_BUSY, STACK_BOTTOM);
-      job[0].state = PCONTROL_JOB_HUNG;
+      PutJobSetState (job, PCONTROL_JOB_BUSY, STACK_BOTTOM, PCONTROL_JOB_HUNG);
       FreeIOBuffer (&buffer);
       return (TRUE);
@@ -78,6 +81,5 @@
 
   /** job has exited : move to DONE stack (host still BUSY) **/
-  PutJob (job, PCONTROL_JOB_DONE, STACK_BOTTOM);
-  job[0].state = outstate;
+  PutJobSetState (job, PCONTROL_JOB_DONE, STACK_BOTTOM, outstate);
   FreeIOBuffer (&buffer);
   return (TRUE);
