-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing file log for multiple locations
Former-commit-id: 53cbecbc1e745fd497fc26b8c4172c7df1eade7f
- Loading branch information
1 parent
47d9ad5
commit 2edf160
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
local _M = {} | ||
|
||
local fd = nil | ||
local fd = {} | ||
|
||
function _M.get_fd() | ||
return fd | ||
function _M.get_fd(conf_path) | ||
return fd[conf_path] | ||
end | ||
|
||
function _M.set_fd(file_descriptor) | ||
fd = file_descriptor | ||
function _M.set_fd(conf_path, file_descriptor) | ||
fd[conf_path] = file_descriptor | ||
end | ||
|
||
return _M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters