We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cbcfb20 + 6906800 commit 558f8e5Copy full SHA for 558f8e5
sources/api/apiserver/src/server/exec/child.rs
@@ -241,6 +241,13 @@ impl ChildHandles {
241
}
242
243
244
+impl Drop for ChildHandles {
245
+ /// Ensures the RawFd is properly closed when ChildHandles is dropped.
246
+ fn drop(&mut self) {
247
+ let _ = close(self.pty_fd);
248
+ }
249
+}
250
+
251
/// ChildFds sets up read and write file descriptors for a Command (before it's spawned) based on
252
/// whether the user requested a TTY.
253
struct ChildFds {
0 commit comments