[PR #2850] [MERGED] Update pid.c #4558

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

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/2850
Author: @disconnect3d
Created: 7/9/2019
Status: Merged
Merged: 7/11/2019
Merged by: @reinerh

Base: masterHead: patch-1


📝 Commits (1)

📊 Changes

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

View changed files

📝 src/lib/pid.c (+1 -2)

📄 Description

Remove redundant child variable in src/lib/pid.c.

The child variable once set to -1, is never reassigned/changed later on.

Found with LGTM: https://lgtm.com/projects/g/netblue30/firejail/snapshot/961c4ca00425b60a7bc8543460031a8ebf3d8aa6/files/src/lib/pid.c?sort=name&dir=ASC&mode=heatmap#xf54d23e21602e321:1


🔄 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/2850 **Author:** [@disconnect3d](https://github.com/disconnect3d) **Created:** 7/9/2019 **Status:** ✅ Merged **Merged:** 7/11/2019 **Merged by:** [@reinerh](https://github.com/reinerh) **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`2a62489`](https://github.com/netblue30/firejail/commit/2a624892de2cae86a368209ac42dd7237eb8f2a2) Update pid.c ### 📊 Changes **1 file changed** (+1 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/pid.c` (+1 -2) </details> ### 📄 Description Remove redundant `child` variable in src/lib/pid.c. The `child` variable once set to `-1`, is never reassigned/changed later on. Found with LGTM: https://lgtm.com/projects/g/netblue30/firejail/snapshot/961c4ca00425b60a7bc8543460031a8ebf3d8aa6/files/src/lib/pid.c?sort=name&dir=ASC&mode=heatmap#xf54d23e21602e321:1 --- <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:22:23 -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#4558
No description provided.