Diff

net/server_event.lua @ 4399:1b4161970842

net.server_event, net.server_select: Fixed some global pollution.
author Waqas Hussain <waqas20@gmail.com>
date Fri, 14 Oct 2011 00:46:29 +0500
parent 4377:705a8f14427b
child 4468:938d878d8087
line wrap: on
line diff
--- a/net/server_event.lua	Fri Aug 12 00:01:35 2011 +0200
+++ b/net/server_event.lua	Fri Oct 14 00:46:29 2011 +0500
@@ -827,14 +827,14 @@
 	end
 end
 
-function get_backend()
+local function get_backend()
 	return base:method();
 end
 
 -- We need to hold onto the events to stop them
 -- being garbage-collected
 local signal_events = {}; -- [signal_num] -> event object
-function hook_signal(signal_num, handler)
+local function hook_signal(signal_num, handler)
 	local function _handler(event)
 		local ret = handler();
 		if ret ~= false then -- Continue handling this signal?