example code to show pid and ppid