change return value of process_execute, avoid race condition