Skip to content
  • Jacob Lorentzon's avatar
    Forbid strong fdtbl refs after setting context's. · 161a92c9
    Jacob Lorentzon authored
    This fixes a possible file table leak if a filetable contains an fd
    referring (strongly) to the filetable itself. Now, it will automatically
    be downgraded to a weak reference after it becomes a context's active
    file table.
    
    TODO: maybe support consuming a context's filetable to get a strong
    reference back, provided it's exclusively owned.
    161a92c9