Proj_2 Problem 1 v1.2

check whether pid is root in halt()