From c57ce145ea5fe90cd24146a1315ffabda345db1d Mon Sep 17 00:00:00 2001 From: Michael Krayer Date: Tue, 8 Apr 2025 15:38:16 +0200 Subject: [PATCH] No need to execute restore_term explicitly --- attach.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/attach.c b/attach.c index 72ae4d3..afa1640 100644 --- a/attach.c +++ b/attach.c @@ -240,7 +240,6 @@ attach_main(int noerror) n = select(s + 1, &readfds, NULL, NULL, NULL); if (n < 0 && errno != EINTR && errno != EAGAIN) { - restore_term(); printf(EOS "[select failed]\r\n"); exit(1); } @@ -252,13 +251,11 @@ attach_main(int noerror) if (len == 0) { - restore_term(); printf(EOS "[EOF - dtach terminating]\r\n"); exit(0); } else if (len < 0) { - restore_term(); printf(EOS "[read returned an error]\r\n"); exit(1); }