Patch from Roel Kluin, backported from Linux 2.6.
With a postfix decrement these timeouts reach -1 rather than 0, but
after the loop it is tested whether they have become 0.
As pointed out by Jean Delvare, the condition we are waiting for should
also be tested before the timeout. With the current order, you could
exit with a timeout error while the job is actually done.
Powered by Trac 0.11.7
By Edgewall Software.
Visit the Trac open source project athttp://trac.edgewall.com/