Added -Wshadow argument to gcc and fixed a shadowing issue with my_pid, and potential problems with my_socket*.