]> ruderich.org/simon Gitweb - ptyas/ptyas.git/blobdiff - ptyas.c
Remove useless else
[ptyas/ptyas.git] / ptyas.c
diff --git a/ptyas.c b/ptyas.c
index ab99f8ede71cf352d4d7aa2ef9c2af83a5b4ef06..a67f8767cbb4e49a59df74bdcd59ff63df839828 100644 (file)
--- a/ptyas.c
+++ b/ptyas.c
@@ -217,9 +217,8 @@ static void proxy_input_between_ttys(int pty_master, int ctty, volatile pid_t *p
         if (ppoll(fds, nfds, NULL /* no timeout */, &sigset_old) == -1) {
             if (errno == EAGAIN || errno == EINTR) {
                 continue;
-            } else {
-                perror("poll");
             }
+            perror("poll");
             break;
         }