Commit a976f44
Daniel A. Wozniak
Fix process and file descriptor leaks in Salt Master
Ensure proper resource lifecycle management and process reaping to resolve leaks introduced between 3006.20 and 3006.25.
- Call wait() after kill() in TimedProc to prevent zombie processes.
- Implement context manager protocol and destroy() in SaltEvent, RunnerClient, WheelClient, and MasterMinion.
- Update masterapi.py to ensure RunnerClient is used within a with statement.
- Explicitly destroy persistent objects in RemoteFuncs and LocalFuncs during teardown.
- Initialize internal attributes to None and fix variable scope issues to achieve 10/10 pylint rating.1 parent 2005c7b commit a976f44
28 files changed
Lines changed: 342 additions & 33 deletions
File tree
- requirements/static/ci
- py3.10
- py3.11
- py3.12
- py3.13
- py3.9
- salt
- daemons
- utils
- wheel
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2393 | 2393 | | |
2394 | 2394 | | |
2395 | 2395 | | |
| 2396 | + | |
2396 | 2397 | | |
2397 | 2398 | | |
2398 | 2399 | | |
| |||
2405 | 2406 | | |
2406 | 2407 | | |
2407 | 2408 | | |
2408 | | - | |
2409 | | - | |
| 2409 | + | |
| 2410 | + | |
| 2411 | + | |
2410 | 2412 | | |
2411 | 2413 | | |
2412 | 2414 | | |
2413 | 2415 | | |
2414 | 2416 | | |
2415 | 2417 | | |
2416 | 2418 | | |
| 2419 | + | |
2417 | 2420 | | |
2418 | 2421 | | |
2419 | 2422 | | |
2420 | 2423 | | |
2421 | 2424 | | |
2422 | 2425 | | |
2423 | 2426 | | |
2424 | | - | |
2425 | | - | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
2426 | 2430 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments