Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop forwarding unnecesary FDs in fusermount-wrapper.sh #47

Merged
merged 1 commit into from
Sep 10, 2021
Merged

Stop forwarding unnecesary FDs in fusermount-wrapper.sh #47

merged 1 commit into from
Sep 10, 2021

Conversation

Erick555
Copy link
Contributor

@Erick555 Erick555 commented Sep 6, 2021

Following analysis from [1] we can conclude that explicit forwarding of fd1 and fd2 is redundant as they're always forwarded and unconditional forwarding of fd3 is at least unnecessary and may be even harmful therefore they should all be dropped especially when original author doesn't recall the need for them here [2].

Fixes #42

[1] flatpak/flatpak-xdg-utils#55 (comment)
[2] #42 (comment)

Following analysis from [1] we can conclude that explicit forwarding of fd1 and fd2 is redundant as they're always forwarded and unconditional forwarding of fd3 is at least unnecessary and may be even harmful therefore they should all be dropped especially when original author doesn't recall the need for them here [2].

Fixes #42

[1] flatpak/flatpak-xdg-utils#55 (comment)
[2] #42 (comment)
@flathubbot
Copy link
Contributor

Started test build 58850

@flathubbot
Copy link
Contributor

Build 58850 successful
To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/56729/org.flatpak.Builder.flatpakref

@nanonyme nanonyme merged commit b18b8f0 into flathub:master Sep 10, 2021
@Erick555 Erick555 deleted the patch-1 branch September 10, 2021 20:18
real-yfprojects added a commit to real-yfprojects/flatpak-com.borgbase.Vorta that referenced this pull request Oct 3, 2022
Forwarding fd 3 sometimes leads to an error because the fd isn't available.
At the same time forwarding fd 3 doesn't seem to be needed as explained in flathub/org.flatpak.Builder#47.
As noted there fd 0, 1 and 2 will always be forwarded so specifying those explicitly isn't needed.

* dependencies/fusermount-wrapper.sh : Remove args for forwarding fd 1, 2 and 3.
Hofer-Julian pushed a commit to flathub/com.borgbase.Vorta that referenced this pull request Oct 3, 2022
Forwarding fd 3 sometimes leads to an error because the fd isn't available.
At the same time forwarding fd 3 doesn't seem to be needed as explained in flathub/org.flatpak.Builder#47.
As noted there fd 0, 1 and 2 will always be forwarded so specifying those explicitly isn't needed.

* dependencies/fusermount-wrapper.sh : Remove args for forwarding fd 1, 2 and 3.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flatpak-spawn: Unable to read struct signalfd_siginfo: Bad file descriptor
3 participants