In between each attempt to call execve() on a particular file path, it will check cancelation before trying the next PATH.