From 06a3956a2ff31943bbd8c989df9033617135f703 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 27 May 2009 13:20:35 +0000 Subject: LuCId fixes --- libs/lucid/luasrc/lucid.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/lucid/luasrc/lucid.lua') diff --git a/libs/lucid/luasrc/lucid.lua b/libs/lucid/luasrc/lucid.lua index d72bf25ef9..34452a5991 100644 --- a/libs/lucid/luasrc/lucid.lua +++ b/libs/lucid/luasrc/lucid.lua @@ -176,7 +176,7 @@ end function create_process(threadcb, waitcb) local threadlimit = tonumber(cursor:get(UCINAME, "main", "threadlimit")) - if threadlimit and #tpids >= tcount then + if threadlimit and tcount >= threadlimit then nixio.syslog("warning", "Unable to create thread: process limit reached") return nil end -- cgit v1.2.3