Comparison

plugins/mod_posix.lua @ 1061:8c5876378c6f

mod_posix: Fix for removing the pidfile on exit
author Matthew Wild <mwild1@gmail.com>
date Thu, 23 Apr 2009 21:34:03 +0100
parent 1045:06887b889b17
child 1062:f9a1ac50782b
comparison
equal deleted inserted replaced
1060:fb3b2de0eb2f 1061:8c5876378c6f
16 16
17 local pidfile_written; 17 local pidfile_written;
18 18
19 local function remove_pidfile() 19 local function remove_pidfile()
20 if pidfile_written then 20 if pidfile_written then
21 os.remove(pidfile); 21 os.remove(pidfile_written);
22 pidfile_written = nil; 22 pidfile_written = nil;
23 end 23 end
24 end 24 end
25 25
26 local function write_pidfile() 26 local function write_pidfile()