parents function to list all parent processes of the current shell