Ticket #2319: fancontrol-no-named-pipes.patch

File fancontrol-no-named-pipes.patch, 0.6 KB (added by khali, 7 years ago)

Don't use named pipes in fancontrol

  • prog/pwm/fancontrol

     
    343343                  then # if fan was stopped start it using a safe value 
    344344                        echo $minsa > $pwmo 
    345345                        # Sleep while still handling signals 
    346                         read < <(exec sleep 1) 
     346                        sleep 1 & 
     347                        wait $! 
    347348                  fi 
    348349                fi 
    349350                echo $pwmval > $pwmo # write new value to pwm output 
     
    381382do 
    382383        UpdateFanSpeeds 
    383384        # Sleep while still handling signals 
    384         read < <(exec sleep $INTERVAL) 
     385        sleep $INTERVAL & 
     386        wait $! 
    385387done