Commit 8d1d034
committed
Fix Process.call() passing string commands to Popen without splitting
When shell=False (default), subprocess.Popen expects a list of args, not
a string. Passing a string like 'iw dev' caused Popen to look for an
executable literally named 'iw dev', resulting in FileNotFoundError.
Split string commands into arg lists in Process.call(), matching the
existing behavior in Process.__init__. Also guard __del__ in
InterfaceManager against ImportError during Python shutdown.
https://claude.ai/code/session_011L2mVc8fKRMrkc3Mgahkpy1 parent e112373 commit 8d1d034
2 files changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1136 | 1136 | | |
1137 | 1137 | | |
1138 | 1138 | | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
1142 | 1145 | | |
1143 | 1146 | | |
1144 | 1147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| |||
0 commit comments