Return process by executing tmp function