McKinley was shaking hands with the public when he was shot by Leon Czolgosz , an anarchist .
McKinley was shaking hands with the people when he was shot by Leon Czolgosz , an anarchist .