summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-04-16 18:55:53 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-04-16 18:55:53 +0200
commitb6ff69135e677c22080d2013e87b34319c1ed671 (patch)
tree1769120175b585e78bdb7fbec74381b50b9ceb6a
parent0284eee4a02e9cad0932b1058eec9dde6cf8c682 (diff)
* apt-pkg/deb/dpkgpm.cc:
- replace obsolete usleep with nanosleep
-rw-r--r--apt-pkg/deb/dpkgpm.cc5
-rw-r--r--debian/changelog4
2 files changed, 6 insertions, 3 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc
index 01808be24..b37980b7e 100644
--- a/apt-pkg/deb/dpkgpm.cc
+++ b/apt-pkg/deb/dpkgpm.cc
@@ -391,8 +391,9 @@ void pkgDPkgPM::DoTerminalPty(int master)
{
// this happens when the child is about to exit, we
// give it time to actually exit, otherwise we run
- // into a race
- usleep(500000);
+ // into a race so we sleep for half a second.
+ struct timespec sleepfor = { 0, 500000000 };
+ nanosleep(&sleepfor, NULL);
return;
}
if(len <= 0)
diff --git a/debian/changelog b/debian/changelog
index 5ba6cd082..9f06a87b5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,8 +11,10 @@ apt (0.8.14.1) unstable; urgency=low
memory first before writing to avoid hitting limits
* apt-pkg/orderlist.cc:
- let VisitRProvides report if the calls were successful
+ * apt-pkg/deb/dpkgpm.cc:
+ - replace obsolete usleep with nanosleep
- -- David Kalnischkies <kalnischkies@gmail.com> Sat, 16 Apr 2011 17:13:08 +0200
+ -- David Kalnischkies <kalnischkies@gmail.com> Sat, 16 Apr 2011 18:54:37 +0200
apt (0.8.14) unstable; urgency=low