From: Otavio Salvador Date: Wed, 31 Oct 2007 15:36:54 +0000 (-0200) Subject: Minor fixes on racy_pselect X-Git-Tag: 0.7.24ubuntu1~120^2~7 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/f6b37f38731a06309dc761ffe0fdef094fdf50ca Minor fixes on racy_pselect --- diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index e3fe8d845..5a7711a90 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -555,10 +555,10 @@ static int racy_pselect(int nfds, fd_set *readfds, fd_set *writefds, struct timeval tv; 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); sigprocmask(SIG_SETMASK, &origmask, 0); return retval;