nixpulvis / oursh

Your comrade through the perilous world of UNIX.
http://nixpulvis.com/oursh/oursh
MIT License
67 stars 6 forks source link

Background jobs leave scary zombies #7

Closed nixpulvis closed 6 years ago

nixpulvis commented 6 years ago

With the way we fork and exec without wait for background jobs at the moment, they will remain zombies until the shell itself is exited.

Zombies are scary and bad. I'm sure the solution will come at the time we implement #6.

nixpulvis commented 6 years ago

We've stopped using the potentially dangerous fork function and instead call fork_and_wait on all jobs, including background jobs.