summaryrefslogtreecommitdiffhomepage
path: root/src/pty
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-07-22 01:22:22 -0400
committermidipix <writeonce@midipix.org>2016-07-24 06:15:21 -0400
commit48271e3845cb119414f9b82a11a0404261efdb1d (patch)
tree0fab7f7f490935afb0665e45bc313bb2e4d874d6 /src/pty
parentc26174a7fb2eb57dd26ac3dd31e987d5199e5bc7 (diff)
downloadptycon-48271e3845cb119414f9b82a11a0404261efdb1d.tar.bz2
ptycon-48271e3845cb119414f9b82a11a0404261efdb1d.tar.xz
debug: added job-control session creation in 'raw' and 'oven' modes.
Diffstat (limited to 'src/pty')
-rw-r--r--src/pty/ptyc_pty_ctx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pty/ptyc_pty_ctx.c b/src/pty/ptyc_pty_ctx.c
index 99d8c69..e5245c8 100644
--- a/src/pty/ptyc_pty_ctx.c
+++ b/src/pty/ptyc_pty_ctx.c
@@ -214,6 +214,11 @@ int ptyc_alloc_pty(struct ptyc_driver_ctx * dctx)
return ptyc_set_status(
dctx,status);
+ if (cctx->drvflags & (PTYC_DRIVER_DBG_RAW|PTYC_DRIVER_DBG_OVEN))
+ if ((status = ptyc_pty_own(cctx->hpts,ictx->rtdata)))
+ return ptyc_set_status(
+ dctx,status);
+
return ptyc_set_status(
dctx,NT_STATUS_SUCCESS);
}