diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2007-10-31 13:36:54 -0200 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2007-10-31 13:36:54 -0200 |
commit | f6b37f38731a06309dc761ffe0fdef094fdf50ca (patch) | |
tree | 859a84fdba2f86175992f1ca625b451fd66933e6 /apt-pkg | |
parent | d606f2102184f3d5ba893efebc7bdc3aded36e70 (diff) | |
download | apt-f6b37f38731a06309dc761ffe0fdef094fdf50ca.tar.gz |
Minor fixes on racy_pselect
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index e3fe8d84..5a7711a9 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; |