diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs index 5d2643f..7196f58 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,7 +7,7 @@ use std::io::{self, IsTerminal, Read, Write}; use std::os::unix::ffi::OsStrExt; use std::os::unix::io::AsRawFd; use std::path::Path; -use std::process::{Command, Stdio, exit}; +use std::process::{Command, Stdio}; use std::sync::{Arc, Mutex}; use std::thread::sleep; use std::time::Duration; @@ -16,6 +16,7 @@ pub mod basedir; pub mod completion; pub mod cursor; pub mod date; +pub mod export_fun; pub mod history; pub mod linebuf; pub mod panic; @@ -23,7 +24,6 @@ pub mod parse; pub mod raw; pub mod reload; pub mod run; -pub mod unix; use linebuf::LineBuf; use raw::*; @@ -70,7 +70,7 @@ pub struct Session { builtins: HashMap<BString, &'static dyn run::Builtin>, vars: HashMap<BString, BString>, funs: HashMap<BString, Ast<PreExpansion>>, - socket_running: Option<unix::SocketRunning>, + socket_running: Option<export_fun::SocketRunning>, /// n before end of history.len() /// 0 == not checking history @@ -272,7 +272,7 @@ fn event_loop() { print!("{}", se.prompt()); let session = Arc::new(Mutex::new(se)); - let _sock_dropper = unix::listen(session.clone()); + let _sock_dropper = export_fun::listen(session.clone()); loop { let mut buf = [0u8; 1]; @@ -489,7 +489,7 @@ fn event_loop() { } fn main() { - unix::maybe_run_defined_function(); + export_fun::maybe_run_defined_function(); if !io::stdin().is_terminal() { println!("need to run in a tty"); return; |
