diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-19 10:38:11 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-19 10:38:11 +0000 |
| commit | 75c3db6a55685361ac54f6d7f7f795729f50152f (patch) | |
| tree | fb29a22256d410fb78236b9ae8293e434915250c /src/main.cc | |
| parent | c23e61b4455cee8669c7d594478a4238048f032f (diff) | |
adapt selfpipe and signal process to sigchld handler
Diffstat (limited to 'src/main.cc')
| -rw-r--r-- | src/main.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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") |
