From 75c3db6a55685361ac54f6d7f7f795729f50152f Mon Sep 17 00:00:00 2001 From: _ov4 Date: Mon, 19 Oct 2026 10:38:11 +0000 Subject: adapt selfpipe and signal process to sigchld handler --- src/main.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main.cc') diff --git a/src/main.cc b/src/main.cc index 6fe48a4..7dc8e52 100644 --- a/src/main.cc +++ b/src/main.cc @@ -14,6 +14,7 @@ #include "all.h" #include "test.h" #include "line/line_editor.h" +#include "signal_handler.h" using namespace std; using namespace ov4; @@ -48,6 +49,7 @@ int main([[maybe_unused]] int argc, [[maybe_unused]] char **argv) while (1) { /* Read command line */ + cout << endl; int len = print_prompt(); T_line_editor line_editor_instance; @@ -55,6 +57,7 @@ int main([[maybe_unused]] int argc, [[maybe_unused]] char **argv) enable_raw(); string s = line_editor_instance.readline(len); disable_raw(); + process_signal(); cout << "\n\n\n\n" << endl; cout << s << endl; if (s == "quit") -- cgit v1.3.1-4-g156e