diff --git a/cmd/a.out b/cmd/a.out new file mode 100755 index 0000000..4ce4616 Binary files /dev/null and b/cmd/a.out differ diff --git a/cmd/test.cpp b/cmd/test.cpp new file mode 100644 index 0000000..cc492a3 --- /dev/null +++ b/cmd/test.cpp @@ -0,0 +1,19 @@ +// C++ Code to demonstrate getppid() +#include +#include +using namespace std; + +// Driver Code +int main() +{ + int pid; + pid = fork(); + if (pid == 0) + { + cout << "\nParent Process id : " + << getpid() << endl; + cout << "\nChild Process with parent id : " + << getppid() << endl; + } + return 0; +}