diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2025-01-14 00:03:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-14 00:03:52 +0300 |
commit | bc3b7a2c1f4137f3879de6317f24171643c925c9 (patch) | |
tree | 5552634dbc02d8ddbbaf3064d88d5cc4594a772f /alacritty/src/main.rs | |
parent | 05368ea6a7061fa5e88b01d3e2982cbfd202f15a (diff) | |
download | r-alacritty-bc3b7a2c1f4137f3879de6317f24171643c925c9.tar.gz r-alacritty-bc3b7a2c1f4137f3879de6317f24171643c925c9.tar.bz2 r-alacritty-bc3b7a2c1f4137f3879de6317f24171643c925c9.zip |
Error when failed to create socket with --daemon
The daemon without socket is not that useful.
Diffstat (limited to 'alacritty/src/main.rs')
-rw-r--r-- | alacritty/src/main.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/alacritty/src/main.rs b/alacritty/src/main.rs index 5382e475..9260bfa4 100644 --- a/alacritty/src/main.rs +++ b/alacritty/src/main.rs @@ -183,7 +183,14 @@ fn alacritty(mut options: Options) -> Result<(), Box<dyn Error>> { // Create the IPC socket listener. #[cfg(unix)] let socket_path = if config.ipc_socket() { - ipc::spawn_ipc_socket(&options, window_event_loop.create_proxy()) + match ipc::spawn_ipc_socket(&options, window_event_loop.create_proxy()) { + Ok(path) => Some(path), + Err(err) if options.daemon => return Err(err.into()), + Err(err) => { + log::warn!("Unable to create socket: {:?}", err); + None + }, + } } else { None }; |