From 7c7ad4f0268e6583b5be25250f87bbf05405c621 Mon Sep 17 00:00:00 2001 From: LoGin Date: Fri, 2 Feb 2024 18:54:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8install=E7=9A=84=E6=97=B6=E5=80=99?= =?UTF-8?q?=E5=88=9B=E5=BB=BA/etc/reach/ipc=E7=9B=AE=E5=BD=95=20(#34)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 1 + src/systemctl/listener/mod.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 49e715b..d4d9197 100644 --- a/Makefile +++ b/Makefile @@ -33,5 +33,6 @@ fmt-check: .PHONY: install install: mkdir -p $(INSTALL_DIR)/etc/reach/system + mkdir -p $(INSTALL_DIR)/etc/reach/ipc cp ./parse_test/shell.service $(INSTALL_DIR)/etc/reach/system/shell.service RUSTFLAGS=$(RUSTFLAGS) cargo $(TOOLCHAIN) install --path . --no-track --root $(INSTALL_DIR) --force diff --git a/src/systemctl/listener/mod.rs b/src/systemctl/listener/mod.rs index ceab6c5..f7666ab 100644 --- a/src/systemctl/listener/mod.rs +++ b/src/systemctl/listener/mod.rs @@ -92,7 +92,7 @@ impl Systemctl { let ret = unsafe { libc::mkfifo(path.as_ptr(), 0o666) }; if ret != 0 { // 创建管道失败打日志 - panic!("create ctl pipe failed"); + panic!("create ctl pipe failed, err: {ret}"); } } }