<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>programma on Notities</title><link>https://www.vandenboom.icu/en/tags/programma/</link><description>Recent content in programma on Notities</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Wed, 31 Jan 2024 20:54:45 +0000</lastBuildDate><atom:link href="https://www.vandenboom.icu/en/tags/programma/index.xml" rel="self" type="application/rss+xml"/><item><title>Create a Zombie process in Linux using a C program</title><link>https://www.vandenboom.icu/en/blog/2024-maak-een-zombie-proces-in-linux-m-b-v-een-c-programma/</link><pubDate>Wed, 31 Jan 2024 20:54:45 +0000</pubDate><guid>https://www.vandenboom.icu/en/blog/2024-maak-een-zombie-proces-in-linux-m-b-v-een-c-programma/</guid><description>Below is the source code of a C program to create a Zombie process in Linux and analyse it.
vim create_zombie_process.c #include &amp;lt;stdlib.h&amp;gt;#include &amp;lt;sys/types.h&amp;gt;#include &amp;lt;unistd.h&amp;gt; int main () { pid_t child_pid; child_pid = fork (); if (child_pid &amp;gt; 0) { sleep (60); } else { exit (0); } return 0; } Compile the C source code into an executable program:
gcc create_zombie_process.c Start the program:
./a.out Open a second Terminal and view the process list.</description></item></channel></rss>