]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/dpkgpm.cc
The modification to orderlist.cc is from a patch DonKult (David) gave me, The modific...
[apt.git] / apt-pkg / deb / dpkgpm.cc
index 01808be243b3cfef5329c86aec9d27aba43d70c0..b37980b7ecbbdae96d210bb6ffca6a700c94d23b 100644 (file)
@@ -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)