https://github.com/yaroslaff/zombie
small program which makes zombie process (for learning/debugging purposes)
https://github.com/yaroslaff/zombie
debugging defunct fork process ps wait zombie
Last synced: 3 months ago
JSON representation
small program which makes zombie process (for learning/debugging purposes)
- Host: GitHub
- URL: https://github.com/yaroslaff/zombie
- Owner: yaroslaff
- License: mit
- Created: 2024-11-13T13:41:26.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-11-13T14:30:53.000Z (7 months ago)
- Last Synced: 2024-11-13T14:39:09.613Z (7 months ago)
- Topics: debugging, defunct, fork, process, ps, wait, zombie
- Language: C
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Zombie - small zombie process for learning/debugging
## Compile
~~~
$ make
gcc -Wall -g -o zombie zombie.c
~~~dymanic ELF binary is 18Kb, static (gcc -Wall -g --static -o zombie zombie.c) 800Kb
You can find statically compiled binary in Releases page.
## Usage:
Accepts one argument (int), sleep time. Default value is 0 (sleep forever).~~~
$ ./zombie 50
Parent process (PID: 1011803) is running, child (PID: 1011804) will become a zombie.
Child process (PID: 1011804) is exiting.
~~~When it's running, in ps you can see child process in defunct (zombie) state:
~~~
$ ps auxww|grep zombie
xenon 1011803 0.0 0.0 2364 568 pts/6 S+ 20:44 0:00 ./zombie 50
xenon 1011804 0.0 0.0 0 0 pts/6 Z+ 20:44 0:00 [zombie]
~~~