Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::AutoRemoveJail Class Reference

Public Member Functions

 AutoRemoveJail (int jid)
 AutoRemoveJail (const AutoRemoveJail &)=delete
AutoRemoveJail & operator= (const AutoRemoveJail &)=delete
 AutoRemoveJail (AutoRemoveJail &&other) noexcept
AutoRemoveJail & operator= (AutoRemoveJail &&other) noexcept
 operator int () const
void remove ()
void cancel () noexcept

Public Attributes

int jid = INVALID_JAIL
std::vector< std::filesystem::path > childrenMounts

Friends

void swap (AutoRemoveJail &lhs, AutoRemoveJail &rhs) noexcept

Member Function Documentation

◆ cancel()

void nix::AutoRemoveJail::cancel ( )
noexcept

Cancel the jail removal.

◆ remove()

void nix::AutoRemoveJail::remove ( )

Remove the jail and cancel this AutoRemoveJail, so jail removal is not attempted a second time by the destructor.

The destructor calls this ignoring any exception.


The documentation for this class was generated from the following files:
  • libutil/freebsd/include/nix/util/freebsd-jail.hh
  • libutil/freebsd/freebsd-jail.cc