diff options
author | midipix <writeonce@midipix.org> | 2016-07-05 17:00:06 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-07-21 03:47:25 -0400 |
commit | 538c8a5109b56d1d0a26631fa93913341214501d (patch) | |
tree | 72933385600f4524afc6e7a96e9f62a9d3dd069f /src/driver | |
parent | 4695532805c24af1965ef1407720c8db086e14b3 (diff) | |
download | ptycon-538c8a5109b56d1d0a26631fa93913341214501d.tar.bz2 ptycon-538c8a5109b56d1d0a26631fa93913341214501d.tar.xz |
pty layer: added ptyc_alloc_pty(), ptyc_free_pty().
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/ptyc_amain.c | 3 | ||||
-rw-r--r-- | src/driver/ptyc_driver_ctx.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/driver/ptyc_amain.c b/src/driver/ptyc_amain.c index 4762d3a..3a5ca68 100644 --- a/src/driver/ptyc_amain.c +++ b/src/driver/ptyc_amain.c @@ -70,5 +70,8 @@ int ptyc_main(int argc, char ** argv, char ** envp) if ((ptyc_version(dctx)) < 0) return ptyc_exit(dctx,2); + if (ptyc_alloc_pty(dctx)) + return ptyc_exit(dctx,2); + return ptyc_exit(dctx,ret); } diff --git a/src/driver/ptyc_driver_ctx.c b/src/driver/ptyc_driver_ctx.c index 78ffb54..d403a98 100644 --- a/src/driver/ptyc_driver_ctx.c +++ b/src/driver/ptyc_driver_ctx.c @@ -236,6 +236,7 @@ int ptyc_create_driver_ctx( static void ptyc_free_driver_ctx_impl(struct ptyc_driver_ctx_alloc * ictx) { + ptyc_free_pty(&ictx->ctx.ctx); argv_free(ictx->meta); free(ictx); } |