From: utzoo!decvax!cca!jab@Okc-Unix@sri-unix
Newsgroups: net.unix-wizards
Title: Re:  True login names
Article-I.D.: sri-unix.3337
Posted: Sat Sep 18 00:42:49 1982
Received: Wed Sep 22 10:30:30 1982

From: Jeff Bowles 
Date: 14 Sep 1982 12:17:33 EST (Tuesday)

getppid() returns the parent process, UNLESS the parent has exited.
Then the parent of the process is process #1, which is /etc/init.
For example,
	main()
	{
		if(fork() != 0)
			exit(0);
		printf("getppid() returns %d\n", getppid());
		exit(0);
		}
could produce a nasty suprise.

	Jeff