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

figure out how to fix STDOUT closing under Windows properly #2

Open
eqv opened this issue Sep 17, 2013 · 0 comments
Open

figure out how to fix STDOUT closing under Windows properly #2

eqv opened this issue Sep 17, 2013 · 0 comments

Comments

@eqv
Copy link
Member

eqv commented Sep 17, 2013

print should work in the at_exit function. Under Linux we duplicate the STDOU fd and reopen it before calling at_exit. Figure out how to do that in Windows.

Relevant Code:
https://github.com/hexgolems/pint/blob/master/src/lua.cpp#L90-L100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant