Browse Source

部署到DragonOS启动shell

GnoCiYeH 1 year ago
parent
commit
f55ba09d82
3 changed files with 5 additions and 6 deletions
  1. 0 1
      src/main.rs
  2. 5 4
      src/manager/mod.rs
  3. 0 1
      src/unit/service/mod.rs

+ 0 - 1
src/main.rs

@@ -88,7 +88,6 @@ fn main() {
     // 启动完服务后进入主循环
     loop {
         // 检查各服务运行状态
-        //eprintln!(".");
         Manager::check_running_status();
     }
 }

+ 5 - 4
src/manager/mod.rs

@@ -67,9 +67,10 @@ impl Manager {
         }
 
         // 交付处理子进程退出逻辑
-        for tmp in exited_unit {
-            let unit = UnitManager::get_unit_with_id(&tmp.0).unwrap();
-            unit.lock().unwrap().after_exit(tmp.1);
-        }
+        // TODO:先不做此处理,因为DragonOS的fork进程管道问题尚未解决
+        // for tmp in exited_unit {
+        //     let unit = UnitManager::get_unit_with_id(&tmp.0).unwrap();
+        //     unit.lock().unwrap().after_exit(tmp.1);
+        // }
     }
 }

+ 0 - 1
src/unit/service/mod.rs

@@ -3,7 +3,6 @@ use crate::error::runtime_error::{RuntimeError, RuntimeErrorType};
 use crate::error::{parse_error::ParseError, parse_error::ParseErrorType};
 use crate::executor::ExitStatus;
 use crate::executor::service_executor::ServiceExecutor;
-use crate::executor::ExitStatus;
 use crate::manager::UnitManager;
 use crate::parse::graph::Graph;
 use crate::parse::parse_service::ServiceParser;