From 1bab02981629876bc6059d9ba685b11ebd01374e Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 7 Jul 2016 03:53:59 -0400 Subject: logic: added console initialization and threaded loop allocation. --- src/driver/ptyc_amain.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/driver') diff --git a/src/driver/ptyc_amain.c b/src/driver/ptyc_amain.c index 3a5ca68..f94b236 100644 --- a/src/driver/ptyc_amain.c +++ b/src/driver/ptyc_amain.c @@ -73,5 +73,11 @@ int ptyc_main(int argc, char ** argv, char ** envp) if (ptyc_alloc_pty(dctx)) return ptyc_exit(dctx,2); + if (ptyc_alloc_console(dctx)) + return ptyc_exit(dctx,2); + + if (ptyc_wait_for_console(dctx)) + return ptyc_exit(dctx,2); + return ptyc_exit(dctx,ret); } -- cgit v1.2.3