diff options
author | Tom Fitzhenry <tom@tom-fitzhenry.me.uk> | 2020-04-13 00:43:37 +1000 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-04-19 11:05:22 +0200 |
commit | 18a837c55bc25ebdd6ad25055bd8ae446dc57b5e (patch) | |
tree | 6c9b8ba75b1f4463d780b02cb2fcfec67a104f82 /src/gui/curses | |
parent | d38701f99fb6e7d2db24a6a252946d488667d3a7 (diff) | |
download | weechat-18a837c55bc25ebdd6ad25055bd8ae446dc57b5e.zip |
core: log to stdout, if headless
Fixes https://github.com/weechat/weechat/issues/1475 .
Diffstat (limited to 'src/gui/curses')
-rw-r--r-- | src/gui/curses/headless/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/curses/headless/main.c b/src/gui/curses/headless/main.c index 4bb859857..99df53d99 100644 --- a/src/gui/curses/headless/main.c +++ b/src/gui/curses/headless/main.c @@ -88,7 +88,7 @@ daemonize () int main (int argc, char *argv[]) { - int i, daemon; + int i; weechat_init_gettext (); @@ -104,16 +104,16 @@ main (int argc, char *argv[]) * If "--daemon" is received in command line arguments, * daemonize the process. */ - daemon = 0; + weechat_daemon = 0; for (i = 1; i < argc; i++) { if (strcmp (argv[i], "--daemon") == 0) { - daemon = 1; + weechat_daemon = 1; break; } } - if (daemon) + if (weechat_daemon) daemonize (); /* init, main loop and end */ |