X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/a44aeb52f0476ed56feff82b1cfd2fa84e7a1223..e43312cf4e19bd3eab15a4f43a586e2ab28c9763:/apt-pkg/deb/dpkgpm.cc?ds=inline diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index 8b4e6701a..7e1933f06 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -844,7 +844,7 @@ bool pkgDPkgPM::Go(int OutStatusFd) tv.tv_sec = 1; tv.tv_usec = 0; select_ret = select(max(master, _dpkgin)+1, &rfds, NULL, NULL, &tv); - if (select_ret == 0) + if (select_ret == 0) continue; else if (select_ret < 0 && errno == EINTR) continue; @@ -853,7 +853,7 @@ bool pkgDPkgPM::Go(int OutStatusFd) perror("select() returned error"); continue; } - + if(master >= 0 && FD_ISSET(master, &rfds)) DoTerminalPty(master); if(master >= 0 && FD_ISSET(0, &rfds))