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

CHE-1979: Fix closing terminal widget on typing "exit" or when user kills terminal process #3554

Merged
merged 1 commit into from
Jan 11, 2017

Conversation

AndrienkoAleksandr
Copy link
Contributor

What does this PR do?

Fix closing terminal widget on typing "exit" or when user kills terminal process by "SIGHUP", "SIGTERM", "SIGKILL" and so on.

What issues does this PR fix or reference?
#1979

Please review @evoevodin @tolusha @azatsarynnyy

socket.setOnCloseHandler(new ConnectionClosedHandler() {
@Override
public void onClose(WebSocketClosedEvent event) {
if (CLOSE_NORMAL == event.getCode()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we close terminal if and only if CLOSE_NORMAL == event.getCode() ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because, in case abnormal closing launches onErrorHandler and we try reconnect to terminal...

@codenvy-ci
Copy link

@codenvy-ci
Copy link

…ls terminal process

Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
@codenvy-ci
Copy link

@AndrienkoAleksandr AndrienkoAleksandr added this to the 5.1.0 milestone Jan 11, 2017
@slemeur slemeur added the kind/bug Outline of a bug - must adhere to the bug report template. label Jan 18, 2017
@JamesDrummond JamesDrummond mentioned this pull request Jan 31, 2017
9 tasks
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
…ls terminal process (eclipse-che#3554)

Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants