[PR #2193] [MERGED] Make --join return exit code of the invoked program #4217

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

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/2193
Author: @grimskies
Created: 10/14/2018
Status: Merged
Merged: 10/14/2018
Merged by: @startx2017

Base: masterHead: join-exit-code


📝 Commits (1)

  • 1650db5 Make --join return exit code of the invoked program

📊 Changes

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

View changed files

📝 src/firejail/join.c (+12 -2)

📄 Description

This PR changes the behavior of --join command, making it return the exit code of the invoked program.

pawel@azath:~$ firejail --join=test exit 123
Switching to pid 10387, the first child process inside the sandbox
Warning: cleaning all supplementary groups
Child process initialized in 45.88 ms
pawel@azath:~$ echo $?
123

🔄 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/2193 **Author:** [@grimskies](https://github.com/grimskies) **Created:** 10/14/2018 **Status:** ✅ Merged **Merged:** 10/14/2018 **Merged by:** [@startx2017](https://github.com/startx2017) **Base:** `master` ← **Head:** `join-exit-code` --- ### 📝 Commits (1) - [`1650db5`](https://github.com/netblue30/firejail/commit/1650db5c78153cc3c92969f178f826e1991771d4) Make --join return exit code of the invoked program ### 📊 Changes **1 file changed** (+12 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/firejail/join.c` (+12 -2) </details> ### 📄 Description This PR changes the behavior of --join command, making it return the exit code of the invoked program. ``` pawel@azath:~$ firejail --join=test exit 123 Switching to pid 10387, the first child process inside the sandbox Warning: cleaning all supplementary groups Child process initialized in 45.88 ms pawel@azath:~$ echo $? 123 ``` --- <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:15:58 -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#4217
No description provided.