From b11bb78e04b1efa1cd7b352f0522c88280647ad4 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Sun, 5 Feb 2012 19:38:22 +0100 Subject: [PATCH] hddtemp: fix curl hang in version 7.24.0 --- widgets/hddtemp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/hddtemp.lua b/widgets/hddtemp.lua index 687ced1..0c79656 100644 --- a/widgets/hddtemp.lua +++ b/widgets/hddtemp.lua @@ -21,7 +21,7 @@ local function worker(format, warg) if warg == nil then warg = 7634 end local hdd_temp = {} -- Get info from the hddtemp daemon - local f = io.popen("curl --connect-timeout 1 -fsm 3 telnet://127.0.0.1:"..warg) + local f = io.popen("echo | curl --connect-timeout 1 -fsm 3 telnet://127.0.0.1:"..warg) for line in f:lines() do for d, t in string.gmatch(line, "|([%/%a%d]+)|.-|([%d]+)|[CF]+|") do