Show
Ignore:
Timestamp:
03/18/09 10:33:04 (4 years ago)
Author:
khali
Message:

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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-2.10/CHANGES

    r5686 r5687  
    55  File lm_sensors.lsm: Delete, don't advertise a legacy branch 
    66  File doc/developers/release_checklist: Skip mail to lsm 
     7  Module i2c-amd8111: Fix timeout handling (2.6 backport) 
    78  Module it87: Properly decode -128 degrees C (2.6 backport) 
    89  Program sensors-detect: Fix detection of older DS1621