[an error occurred while processing this directive]
$ParentProcessID gives the ID assigned to the process which invokes the Mathematica kernel by the operating system under which it is run.
On operating systems where no process ID is assigned, $ParentProcessID is None.
See the Mathematica book: Section 2.13.5.
See also: $ParentLink, $ProcessID, $CommandLine, $UserName, Environment.