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

doesn't work with ruby 2.0 #3

Open
tiwe-de opened this issue Apr 9, 2014 · 0 comments · May be fixed by #5
Open

doesn't work with ruby 2.0 #3

tiwe-de opened this issue Apr 9, 2014 · 0 comments · May be fixed by #5

Comments

@tiwe-de
Copy link

tiwe-de commented Apr 9, 2014

strace shows a fd 15 with CLOEXEC flag and an exec to gpg with --status-fd=15

changing the shebang to ruby1.9.1 makes it work again

robbat2 added a commit to robbat2/pwstore-debian that referenced this issue Jan 10, 2015
One of the Ruby 1.9->Ruby 2 upstream changes was that the handling of
file descriptors on exec calls had two changes in defaults:

- All non-primary FDs are closed by default
- All FDs have CLOEXEC/close_on_exec set:
  http://ruby-doc.org/core-2.2.0/IO.html#method-i-close_on_exec-3D

Fixes formorer#3

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
@robbat2 robbat2 linked a pull request Jan 10, 2015 that will close this issue
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 a pull request may close this issue.

1 participant