console: io backup restore#525
Conversation
f096a01 to
f9d4706
Compare
f9d4706 to
ece79b0
Compare
This comment was marked as outdated.
This comment was marked as outdated.
I think we only need to handle one case at a time. And We should restore to the original console (as you implemented) when we finish with any of these commands, so the next one can properly run.
I hope I addressed these with the response above. Let me know if it didn't or ping me on discord/reddit to chat. |
2dc8887 to
2ecac27
Compare
98f51b9 to
7dba99e
Compare
|
just came back from a longish travel, I'll look at this again. |
f5a7b40 to
4e532c3
Compare
…p context This way syslog-ng-ctl -h, syslog-ng-ctl--help and syslog-ng-ctl command -h, syslog-ng-ctl command --help will behave the same way (not like till now) Signed-off-by: Hofi <hofione@gmail.com>
Signed-off-by: Hofi <hofione@gmail.com>
Signed-off-by: Hofi <hofione@gmail.com>
…l_console instead Signed-off-by: Hofi <hofione@gmail.com>
…ers to redirect on attach Signed-off-by: Hofi <hofione@gmail.com>
…urate help contexts and help info Signed-off-by: Hofi <hofione@gmail.com>
Signed-off-by: Hofi <hofione@gmail.com>
Signed-off-by: Hofi <hofione@gmail.com> # Conflicts: # lib/mainloop-control.c # syslog-ng-ctl/commands/attach.c Signed-off-by: Hofi <hofione@gmail.com>
…er validation, sub-commands and options do not need to be double validated Signed-off-by: Hofi <hofione@gmail.com>
4e532c3 to
6ff5cc5
Compare
|
FYI. This has a bug, unfortunately. This will hopefully fix it. |
console: add support for restoring the original console io handlers after an attached control client has finished its work
Signed-off-by: Hofi hofione@gmail.com