-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reattach to the syslog-ng console from syslog-ng-ctl #326
base: main
Are you sure you want to change the base?
Commits on Oct 6, 2024
-
scratch-buffers: do not use ivykis in non-ivykis threads
scratch_buffers_lazy_update_stats() uses the ivykis time state to check if it is time to update the stats about scratch buffers. Do not do that if ivykis is not initialized. This may happen in control threads and the debugger threads that do use scratch buffers but don't use ivykis. Signed-off-by: Balazs Scheidler <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for eb9f896 - Browse repository at this point
Copy the full SHA eb9f896View commit details -
control: make it possible to query if a worker relates to a connection
A better solution would be to have a connection specific worker list, and a list of connections. But for now this suffices for my purposes of being able to cancel connection specific workers. Signed-off-by: Balazs Scheidler <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6c5fefc - Browse repository at this point
Copy the full SHA 6c5fefcView commit details -
control: cancel connection related workers
Up to now, control worker threads were only cancelled at exit. Truth be told we never really detected if the peer has disconnected either. This patch implements thread cancellation whenever a connection closes, to detect the closure of the connection comes in a separate patch. Signed-off-by: Balazs Scheidler <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2ff65a5 - Browse repository at this point
Copy the full SHA 2ff65a5View commit details -
control: call app_thread_start/stop from command threads
Signed-off-by: Balazs Scheidler <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e5eabb3 - Browse repository at this point
Copy the full SHA e5eabb3View commit details -
control: add support for passing 3 fds through the control socket
This will be used to pass over the stdio file descriptors from syslog-ng-ctl so we can attach to the syslog-ng process after it was started in the background. Signed-off-by: Balazs Scheidler <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 07416ff - Browse repository at this point
Copy the full SHA 07416ffView commit details -
console: new module to track the interactive connection to a terminal
Signed-off-by: Balazs Scheidler <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5d4d649 - Browse repository at this point
Copy the full SHA 5d4d649View commit details -
gprocess: integrate startup with the new console management module
Signed-off-by: Balazs Scheidler <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 043d50c - Browse repository at this point
Copy the full SHA 043d50cView commit details -
mainloop-control: add support for ATTACH STDIO
This new command allows to reconnect the stdio streams even if syslog-ng runs in the background. syslog-ng-ctl will be able to pass 3 fds to the syslog-ng process, which will be duplicated into the standard fds and with that syslog-ng will happily start displaying its stdout to that terminal. The ATTACH command itself is threaded and the control socket is only used to indicate that the peers are still alive. syslog-ng will start sending "ALIVE" messages to this stream every second or so. If sending this packet is not successful, the connection is closed and the thread is cancelled. Upon cancellation, the stdio fds are restored to point to /dev/null. Signed-off-by: Balazs Scheidler <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d0f679b - Browse repository at this point
Copy the full SHA d0f679bView commit details -
syslog-ng-ctl: add support for "attach" command
Signed-off-by: Balazs Scheidler <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 004bc3b - Browse repository at this point
Copy the full SHA 004bc3bView commit details -
control: remove and bump verbosity for some control socket related me…
…ssages Signed-off-by: Balazs Scheidler <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c5e220b - Browse repository at this point
Copy the full SHA c5e220bView commit details -
gprocess: get rid off the stderr_present variable
Signed-off-by: Balazs Scheidler <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3db4f22 - Browse repository at this point
Copy the full SHA 3db4f22View commit details