Commit c27eb2c
committed
fix: handle dead VMM and scan all urunc TAP devices during cleanup
Treat ESRCH from killProcess as success since the process is already
gone, allowing network cleanup to proceed instead of failing silently.
Refactored network.Cleanup to scan for all tap.*_urunc interfaces
rather than relying on a hardcoded name. Continue processing remaining
devices on per-device errors and return a joined error at the end.
Fixes #408
Integrates #407
Signed-off-by: goyalpalak18 <goyalpalak1806@gmail.com>1 parent 8b09f2e commit c27eb2c
4 files changed
Lines changed: 49 additions & 26 deletions
File tree
- .github/linters
- pkg
- network
- unikontainers
- hypervisors
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| 401 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
265 | | - | |
| 266 | + | |
266 | 267 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
| 268 | + | |
| 269 | + | |
280 | 270 | | |
281 | | - | |
282 | | - | |
| 271 | + | |
283 | 272 | | |
284 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
285 | 276 | | |
286 | | - | |
287 | | - | |
| 277 | + | |
288 | 278 | | |
289 | | - | |
290 | | - | |
291 | | - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
292 | 310 | | |
293 | | - | |
| 311 | + | |
| 312 | + | |
294 | 313 | | |
295 | 314 | | |
296 | 315 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
587 | | - | |
588 | | - | |
| 587 | + | |
589 | 588 | | |
590 | | - | |
| 589 | + | |
591 | 590 | | |
592 | 591 | | |
593 | 592 | | |
| |||
0 commit comments