diff options
author | Christian Pointner <equinox@spreadspace.org> | 2010-11-03 17:45:35 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2010-11-03 17:45:35 +0000 |
commit | c7382e15e91e717acd1b13a7550b2e3bad4a7a91 (patch) | |
tree | b1617ead7449096effe825c55351ffe6a9da8b37 | |
parent | fixed typo (diff) |
fixed options print bug
fixed debug_shell cleanup
git-svn-id: https://svn.spreadspace.org/gcsd/trunk@8 ac14a137-c7f1-4531-abe0-07747231d213
-rw-r--r-- | src/main_loop.lua | 4 | ||||
-rw-r--r-- | src/options.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/main_loop.lua b/src/main_loop.lua index 95749af..2ff1eae 100644 --- a/src/main_loop.lua +++ b/src/main_loop.lua @@ -69,7 +69,9 @@ function main_loop(opt) if(return_value == 2) then return_value = 0 end - debug_shell.close(); + if(opt.debug) then + debug_shell.close(); + end signal.stop() return return_value end diff --git a/src/options.c b/src/options.c index 7ca1b35..a23523b 100644 --- a/src/options.c +++ b/src/options.c @@ -342,7 +342,7 @@ void options_print_usage() printf(" add a log target, can be invoked several times\n"); printf(" [-l|--lua-code] <lua-file> load lua code containing the dispatch table from this file\n"); printf(" [-o|--output] <module>:[<param1>[,<param2>[,<param3>[..]]]]\n"); - printf(" use this as the output module"); + printf(" use this as the output module\n"); printf(" [-i|--input] <module>:[<param1>[,<param2>[,<param3>[..]]]]\n"); printf(" add a command input module, can be invoked several times\n"); printf(" [-U|--debug] don't daemonize and log to stdout with maximum log level\n"); |