diff --git a/html/svc/main.php b/html/svc/main.php index 063b0e4..8f81018 100644 --- a/html/svc/main.php +++ b/html/svc/main.php @@ -171,8 +171,12 @@ */ function check_rpc_clients(){ + global $msgArr; + $caller_id = 0; + //don't reuse the local variable here, it gets corrupted. No idea why. + //keep separate in/out copies. $obj_in = rpc_listen( $caller_id, $msgArr, false ); $obj_out = null; @@ -192,13 +196,14 @@ //send msg back rpc_reply( $caller_id, $obj_out ); - //done with the message + //done with the global message unset( $msgArr[$caller_id] ); if( $obj_in[0] == 'm:fork-complete' ){ if( count($obj_in)<5){ - print("m:fork-complete only has". count($obj_in) . " params, should be 5, skipping client cleanup\n"); - print_r( $obj_in ); + //some bizzare things going on with the obj_in + print("m:fork-complete only has ". count($obj_in) . " params, should be 5, skipping client cleanup\n"); + print_r( $obj_in ); return true; } print("now wait for child pid = {$obj_in[1]} \n"); diff --git a/notes.txt b/notes.txt index c65a851..ad31e99 100644 --- a/notes.txt +++ b/notes.txt @@ -11,8 +11,6 @@ In progress ----------- - - bu-common.php set_last_run_date, set_sched_date