check_parent_exists(void)
{
	/*
	 * If our parent has exited then getppid() will return (pid_t)1,
	 * so testing for that should be safe.
	 */
	if (parent_pid != -1 && getppid() != parent_pid) {
		/* printf("Parent has died - Authentication agent exiting.\n"); */
		cleanup_socket();
		_exit(2);
	}
}
check_parent_exists(void)
{
	 
	if (parent_pid != -1 && getppid() != parent_pid) {
		 
		cleanup_socket();
		_exit(2);
	}
}