diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/driver/ptyc_driver_ctx.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/driver/ptyc_driver_ctx.c b/src/driver/ptyc_driver_ctx.c index 4129cf5..ab4cbdb 100644 --- a/src/driver/ptyc_driver_ctx.c +++ b/src/driver/ptyc_driver_ctx.c @@ -18,6 +18,7 @@ #define ARGV_DRIVER #include "ptycon_version.h" +#include "ptycon_daemon_impl.h" #include "ptycon_driver_impl.h" #include "argv/argv.h" @@ -32,6 +33,9 @@ const ntcon_vtbl * const ptyc_ntcon = &ptyc_ntcon_vtbl; static gdi_vtbl ptyc_gdi_vtbl; const gdi_vtbl * const ptyc_gdi = &ptyc_gdi_vtbl; +/* daemon */ +static struct ptyc_daemon_ctx ptyc_daemon_ctx; + /* package info */ static const struct ptyc_source_version ptyc_src_version = { PTYC_TAG_VER_MAJOR, @@ -245,6 +249,9 @@ int ptyc_get_driver_ctx( if (!(ctx = ptyc_driver_ctx_alloc(meta,&cctx,nunits))) return ptyc_get_driver_ctx_fail(meta); + if (ptyc_daemon_init(&ptyc_daemon_ctx,cctx.drvflags)) + return ptyc_get_driver_ctx_fail(meta); + ctx->ctx.program = program; ctx->ctx.cctx = &ctx->cctx; |