update comment for process_wait