summaryrefslogtreecommitdiffstats
path: root/src/shell/history/pty.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-02-27 16:36:08 -0500
committerJesse Luehrs <doy@tozt.net>2022-02-27 16:36:08 -0500
commit25c8b77ba569468cddfae45f069f1c58170da475 (patch)
tree7d2e36afdac77b84dc0c7a6e47a8968ef9a39092 /src/shell/history/pty.rs
parent68691cedbfc82f7c2a57f6aaa0f2552f8ad1f8ba (diff)
downloadnbsh-25c8b77ba569468cddfae45f069f1c58170da475.tar.gz
nbsh-25c8b77ba569468cddfae45f069f1c58170da475.zip
these aliases are not really saving much of anything
Diffstat (limited to 'src/shell/history/pty.rs')
-rw-r--r--src/shell/history/pty.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shell/history/pty.rs b/src/shell/history/pty.rs
index e96da41..499ccc6 100644
--- a/src/shell/history/pty.rs
+++ b/src/shell/history/pty.rs
@@ -8,7 +8,7 @@ pub struct Pty {
impl Pty {
pub fn new(
size: (u16, u16),
- entry: &crate::mutex::Mutex<super::Entry>,
+ entry: &std::sync::Arc<tokio::sync::Mutex<super::Entry>>,
input_r: tokio::sync::mpsc::UnboundedReceiver<Vec<u8>>,
resize_r: tokio::sync::mpsc::UnboundedReceiver<(u16, u16)>,
event_w: crate::shell::event::Writer,
@@ -22,7 +22,7 @@ impl Pty {
tokio::task::spawn(pty_task(
pty,
std::sync::Arc::clone(&pts),
- crate::mutex::clone(entry),
+ std::sync::Arc::clone(entry),
input_r,
resize_r,
close_r,
@@ -49,7 +49,7 @@ async fn pty_task(
// take the pts here just to ensure that we don't close it before this
// task finishes, otherwise the read call can return EIO
_pts: std::sync::Arc<pty_process::Pts>,
- entry: crate::mutex::Mutex<super::Entry>,
+ entry: std::sync::Arc<tokio::sync::Mutex<super::Entry>>,
input_r: tokio::sync::mpsc::UnboundedReceiver<Vec<u8>>,
resize_r: tokio::sync::mpsc::UnboundedReceiver<(u16, u16)>,
close_r: tokio::sync::mpsc::UnboundedReceiver<()>,