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

Split print calls on newlines #299

Merged

Conversation

creideiki
Copy link
Contributor

If torbrowser-launcher cannot write to stdout, e.g. because it was started in the background and the controlling terminal has been closed or because it was started from a desktop environment launcher whose stdout has been closed, it crashes after updating the GnuPG key.

This is due to print() crashing the program if stdout isn't writeable and the string to print contains a newline.

To work around the problem, split the strings containing newlines into several calls to print().

See also the upstream bug at https://bugs.python.org/issue32345

Closes #298

If torbrowser-launcher cannot write to stdout, e.g. because it was
started in the background and the controlling terminal has been closed
or because it was started from a desktop environment launcher whose
stdout has been closed, it crashes after updating the GnuPG key.

This is due to print() crashing the program if stdout isn't writeable
and the string to print contains a newline.

To work around the problem, split the strings containing newlines into
several calls to print().

See also the upstream bug at https://bugs.python.org/issue32345

Closes torproject#298
@micahflee micahflee merged commit 469331e into torproject:master Jan 28, 2018
@creideiki creideiki deleted the 298-remove-newlines-from-prints branch January 28, 2018 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants