summaryrefslogtreecommitdiff
path: root/sysdep/unix/main.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2014-02-07 13:09:55 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2014-02-07 13:09:55 +0100
commit4e398e34bf140baf73fe8dceaf81078fb343f65a (patch)
treecef4e19194b5be76f62fb80bb9aaf9e10944159a /sysdep/unix/main.c
parent9ae0f4b78c5e3619ee19969c052c863bf96be6d9 (diff)
Workaround thread-unsafeness of cli_echo().
Diffstat (limited to 'sysdep/unix/main.c')
-rw-r--r--sysdep/unix/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c
index 7a945826..e9217bc9 100644
--- a/sysdep/unix/main.c
+++ b/sysdep/unix/main.c
@@ -797,6 +797,8 @@ main(int argc, char **argv)
dup2(0, 2);
}
+ main_thread_init();
+
write_pid_file();
signal_init();