Explorar o código

Minor fixes on racy_pselect

Otavio Salvador %!s(int64=18) %!d(string=hai) anos
pai
achega
f6b37f3873
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      apt-pkg/deb/dpkgpm.cc

+ 3 - 3
apt-pkg/deb/dpkgpm.cc

@@ -555,10 +555,10 @@ static int racy_pselect(int nfds, fd_set *readfds, fd_set *writefds,
    struct timeval tv;
    struct timeval tv;
    int retval;
    int retval;
 
 
-   tv.tv_sec = timeout->tv.tv_sec;
-   tv.tv_usec = timeout->tv.tv_nsec/1000;
+   tv.tv_sec = timeout->tv_sec;
+   tv.tv_usec = timeout->tv_nsec/1000;
 
 
-   sigprocmask(SIG_SETMASK, &sigmask, &origmask);
+   sigprocmask(SIG_SETMASK, sigmask, &origmask);
    retval = select(nfds, readfds, writefds, exceptfds, &tv);
    retval = select(nfds, readfds, writefds, exceptfds, &tv);
    sigprocmask(SIG_SETMASK, &origmask, 0);
    sigprocmask(SIG_SETMASK, &origmask, 0);
    return retval;
    return retval;