summaryrefslogtreecommitdiffhomepage
path: root/src/driver
diff options
context:
space:
mode:
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);
}