[PR #257] [MERGED] Make the sandbox process reap all children. #3575

Closed
opened 2026-05-05 10:03:55 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/257
Author: @creideiki
Created: 1/23/2016
Status: Merged
Merged: 1/24/2016
Merged by: @netblue30

Base: masterHead: master


📝 Commits (1)

  • 64ef8f7 Make the sandbox process reap all children.

📊 Changes

1 file changed (+5 additions, -1 deletions)

View changed files

📝 src/firejail/sandbox.c (+5 -1)

📄 Description

Quick patch for netblue30/firejail#256

Instead of running waitpid(app) in the sandbox, run waitpid(-1) in a loop and check the return value until the original app dies.

I'm not sure you should trust me to write C code, but this patch has been running my KMail for several minutes now without eating any kittens :)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netblue30/firejail/pull/257 **Author:** [@creideiki](https://github.com/creideiki) **Created:** 1/23/2016 **Status:** ✅ Merged **Merged:** 1/24/2016 **Merged by:** [@netblue30](https://github.com/netblue30) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`64ef8f7`](https://github.com/netblue30/firejail/commit/64ef8f7b652870624a219a026bb29c7b78d93c9e) Make the sandbox process reap all children. ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/firejail/sandbox.c` (+5 -1) </details> ### 📄 Description Quick patch for netblue30/firejail#256 Instead of running waitpid(app) in the sandbox, run waitpid(-1) in a loop and check the return value until the original app dies. I'm not sure you should trust me to write C code, but this patch has been running my KMail for several minutes now without eating any kittens :) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 10:03:55 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#3575
No description provided.