summaryrefslogtreecommitdiff
path: root/src/pty.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/pty.rs')
-rw-r--r--src/pty.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pty.rs b/src/pty.rs
index ea0e543d..07afba33 100644
--- a/src/pty.rs
+++ b/src/pty.rs
@@ -17,6 +17,7 @@ use errno::Errno;
///
/// This is returned by `openpty`. Note that this type does *not* implement `Drop`, so the user
/// must manually close the file descriptors.
+#[derive(Clone, Copy)]
pub struct OpenptyResult {
pub master: RawFd,
pub slave: RawFd,