Skip to content

Commit

Permalink
lua/io/CgroupInfo: allow passing a FileDescriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Dec 5, 2023
1 parent ab2802b commit e499387
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libcommon
5 changes: 1 addition & 4 deletions src/reaper/LAccounting.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ Push(lua_State *L, Lua::AutoCloseList &auto_close,
{
const ScopeCheckStack check_stack{L, 1};

Lua::NewCgroupInfo(L, auto_close, relative_path);

// TODO use
(void)cgroup_fd;
Lua::NewCgroupInfo(L, auto_close, relative_path, std::move(cgroup_fd));

// inject more attributes into CgroupInfo's FenvCache
lua_getfenv(L, -1);
Expand Down

0 comments on commit e499387

Please sign in to comment.