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

Should open files with 'close-on-exec' #22

Open
tschwinge opened this issue May 21, 2019 · 1 comment
Open

Should open files with 'close-on-exec' #22

tschwinge opened this issue May 21, 2019 · 1 comment

Comments

@tschwinge
Copy link
Member

I noticed that when nvptx-as spawns the ptxas process, the latter does still have the former's file descriptors open (in particular, the *.s input file), presumably due to missing 'close-on-exec' handling. I don't know if we can unconditionally use the e flag with fdopen, or manually have to set up FD_CLOEXEC etc.; see https://stackoverflow.com/questions/1643304/how-to-set-close-on-exec-by-default, for example.

@tschwinge
Copy link
Member Author

This does not seem to get resolved by simply updating the include/ and libiberty/ files to current GCC trunk r270700.

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

No branches or pull requests

1 participant