cpp: rpc: updating child process state on change only