mirror of
https://codeberg.org/icewind/netnsd.git
synced 2026-06-03 17:14:06 +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
|
|
@ -3,7 +3,7 @@ use crate::namespace::NetNs;
|
|||
use main_error::MainResult;
|
||||
|
||||
pub fn up(config: Config) -> MainResult {
|
||||
let mut namespaces = NetNs::existing()?
|
||||
let mut namespaces = NetNs::existing(false)?
|
||||
.map(NetNs::new)
|
||||
.collect::<Result<Vec<_>, _>>()?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue