summaryrefslogtreecommitdiffhomepage
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-07-07 03:53:59 -0400
committermidipix <writeonce@midipix.org>2016-07-21 03:47:25 -0400
commit1bab02981629876bc6059d9ba685b11ebd01374e (patch)
treebb6a6e83daf5432901f5d5a62305bab47f3bb01c /src/driver
parent31bc75f3cde588a8a28c2e3abc9b0bc38cca8baf (diff)
downloadptycon-1bab02981629876bc6059d9ba685b11ebd01374e.tar.bz2
ptycon-1bab02981629876bc6059d9ba685b11ebd01374e.tar.xz
logic: added console initialization and threaded loop allocation.
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/ptyc_amain.c6
1 files changed, 6 insertions, 0 deletions
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);
}