Question: in linux only and do not copy from other answers...
In Linux Only and do not copy from other answers already posted please!!
Write a simple test program to find out the parent process id of a process before and after its parent process terminates. Based on your test results, answer the following question: what is a process's parent process after its original parent process terminates?