Commit 6906800
committed
apiserver: fix file descriptor leak in exec
The ChildHandles struct was not properly closing the file descriptor
(pty_fd) when dropped. This caused a leak of one RawFd per apiclient
exec command. Added a Drop implementation to ensure proper cleanup of
the raw file descriptor.
Signed-off-by: Kyle Sessions <[email protected]>1 parent 9668a6a commit 6906800
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
244 | 251 | | |
245 | 252 | | |
246 | 253 | | |
| |||
0 commit comments