Skip to content

Commit

Permalink
removing bash error
Browse files Browse the repository at this point in the history
  • Loading branch information
subnetmarco committed May 9, 2015
1 parent ead8e11 commit 25fba31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kong/tools/io.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ end
--
-- @param {string} the pid to kill
function _M.kill_process_by_pid(pid, signal)
return _M.os_execute("kill "..(signal and "-"..tostring(signal).." " or "")..pid.." && wait "..pid)
local res, code = _M.os_execute("kill "..(signal and "-"..tostring(signal).." " or "")..pid)
_M.os_execute("wait "..pid)
return res, code
end

function _M.read_file(path)
Expand Down

0 comments on commit 25fba31

Please sign in to comment.