Notities

Notities

ing. M.A.C.M. (Martijn) van den Boom

Computer Infrastructure Engineer
ingenieur, docent en mentor

Social Media Links:

ing. M.A.C.M. (Martijn) van den Boom

1-Minute Read

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 <stdlib.h>#include <sys/types.h>#include <unistd.h> int main () { pid_t child_pid; child_pid = fork (); if (child_pid > 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.

Recent Posts:

Categories

About

Sponsor me link:
ko-fi.com/martijnvandenboom
paypal.me/ingmacmvandenboom
buymeacoffee.com/ingvdboom