From fcaa9ac0f8247367d619546488e58ae0d86da925 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Tue, 31 Jan 2017 17:28:54 +0100 Subject: [PATCH] daemon TTY: don't skip lua_settop in binary mode This might help if the lua command returns an unexpected number of arguments. --- daemon/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/main.c b/daemon/main.c index 8e66348f6..f3094c36a 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -130,6 +130,7 @@ static void tty_process_input(uv_stream_t *stream, ssize_t nread, const uv_buf_t uint32_t len_n = htonl(len_s); fwrite(&len_n, sizeof(len_n), 1, out); fwrite(message, len_s, 1, out); + lua_settop(L, 0); goto finish; } -- 2.47.3