[PATCH v2 4/6] add rlWaitForCmd