HTC One - keeps shutting down when rooting
If reboot:
This is just part of the process of rooting on some devices and some devices it won't do this.

If shut down:
It means the root is installed on your phone and the rooting process is finished.

Hope this helps