Handles the case where parent pid == process pid and != 0. Fixes #3495. Fixes #3481. Fixes #3592 
Handles the case where parent pid == process pid and != 0. Fixes #3495. Fixes #3481. Fixes #3592 

[SVN r57850]

nihildeb/hme,nihildeb/hme,nihildeb/hme,nihildeb/hme,nihildeb/hme,nihildeb/hme