--- datasync_run.php.p1	2009-08-18 11:33:48.000000000 +1200
+++ datasync_run.php	2009-08-18 11:34:42.000000000 +1200
@@ -260,10 +260,14 @@
         module_invoke_all('datasync_post_jobs');
         datasync_debug("Invoked datasync_post_jobs hooks");
         exit(0);
       }
       else {
+        //keep track of child
+        $children[$pid] = 'post_jobs||post_jobs';
+        $children_jid[$pid] = -1;
+        $children_count[$children[$pid]]++;
         //parent breaks out of the 2 curly braces below and continues
       }
     }
     //create db resource for parent again
     db_set_active($db_name);
