3 ms·
You swapped the child and parent in the printf statements here https://peteris.rocks/blog/htop/#z-defunct-zombie-process-terminated-but-not-reaped-by-its-parent
by idsout 10y ago
You swapped the child and parent in the printf statements here https://peteris.rocks/blog/htop/#z-defunct-zombie-process-terminated-but-not-reaped-by-its-parent https://peteris.rocks/blog/htop/#z-defunct-zombie-process-te....
printf("The parent process is exiting now\n");
This should read child is exiting.
printf("The child process is sleeping now\n");
This should read parent is sleeping.
Overall, I really enjoyed the article.
- p8donald 10y agoThanks for catching that.