No need to execute restore_term explicitly

This commit is contained in:
Michael Krayer 2025-04-08 15:38:16 +02:00
parent 82ffbac28b
commit c57ce145ea
1 changed files with 0 additions and 3 deletions

View File

@ -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);
}