mirror of
https://codeberg.org/icewind/netnsd.git
synced 2026-06-03 09:04:07 +02:00
make managing namespaces more resilient against inconsitent states
This commit is contained in:
parent
63a800e20f
commit
9dd802050c
4 changed files with 49 additions and 15 deletions
|
|
@ -101,7 +101,7 @@ struct State {
|
|||
|
||||
impl State {
|
||||
pub fn new() -> Result<Self, DaemonError> {
|
||||
let namespaces = NetNs::existing()?
|
||||
let namespaces = NetNs::existing(false)?
|
||||
.map(ActiveNamespace::new)
|
||||
.collect::<Result<Vec<_>, _>>()?;
|
||||
Ok(State { namespaces })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue