How to keep your child from becoming a zombie process (C example)?

preview_player
Показать описание
---
How to keep your child from becoming a zombie process (C example)? // If you don't reap them, child processes become zombies by default. But what if you don't want them to? This videos shows you how to create child processes that you never have to wait for (reap) using sigaction.

Related Videos:

***

Welcome! I post videos that help you learn to program and become a more confident software developer. I cover beginner-to-advanced systems topics ranging from network programming, threads, processes, operating systems, embedded systems and others. My goal is to help you get under-the-hood and better understand how computers work and how you can use them to become stronger students and more capable professional developers.

About me: I'm a computer scientist, electrical engineer, researcher, and teacher. I specialize in embedded systems, mobile computing, sensor networks, and the Internet of Things. I teach systems and networking courses at Clemson University, where I also lead the PERSIST research lab.

More about me and what I do:

To Support the Channel:
+ like, subscribe, spread the word

Рекомендации по теме
Комментарии
Автор

title with the last word: 😀
title without the last word: 💀

rorak
Автор

Imaging a mommy who randomly clicks on this video and becomes a C programmer

instrate
Автор

Your should've gone all in with the thumbnail - "Stop Your Children From Becoming Zombies"

JakobKenda
Автор

Maybe it's worth to mention that this only works in unix and more a unix thing than a "C" thing...

embeddor
Автор

Interesting, didn't know about that.

On an unrelated note, I think your memset is wrong. You pass in sizeof(sigaction) as the size, I think that gets you the size of a pointer to the sigaction function. You probably want either sizeof(struct sigaction) or sizeof(sa).

JaccovanSchaik
Автор

For a second i thought you were gonna talk about actual children 😂.

knight_kazul
Автор

you gotta hop on the shorts game jacob

energy-tunes
Автор

Jacob, I think you forgot to change the text on your thumbnail, there should be "Parenting", not "C/OS"

capsey_
Автор

instead of using memset to set the struct to zero you can just do struct sigaction sa = {};

leokillerable
Автор

After having viewed a bunch of these videos: Do people actually write C code voluntarily?

redorange