diff options
author | Christian Pointner <equinox@spreadspace.org> | 2010-12-14 18:08:52 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2010-12-14 18:08:52 +0000 |
commit | c314128858c84bcee453d5b291eb8536e06f9aca (patch) | |
tree | 492b71865607b623c90ea4b96ae04b3f1d7c8301 /src/tcpproxy.c | |
parent | fixed problematic usage of strndup (diff) |
listener info output on SIG USR1
clients info output on SIG USR2
git-svn-id: https://svn.spreadspace.org/tcpproxy/trunk@59 e61f0598-a718-4e21-a8f0-0aadfa62ad6b
Diffstat (limited to 'src/tcpproxy.c')
-rw-r--r-- | src/tcpproxy.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tcpproxy.c b/src/tcpproxy.c index 1007b80..7645c39 100644 --- a/src/tcpproxy.c +++ b/src/tcpproxy.c @@ -81,6 +81,10 @@ int main_loop(options_t* opt, listeners_t* listeners) log_printf(NOTICE, "ignoring SIGHUP: no config file specified"); return_value = 0; + } else if(return_value == 3) { + listeners_print(listeners); + } else if(return_value == 4) { + clients_print(&clients); } } |