diff options
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/ptyc_amain.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/driver/ptyc_amain.c b/src/driver/ptyc_amain.c index ecdc651..a257bf7 100644 --- a/src/driver/ptyc_amain.c +++ b/src/driver/ptyc_amain.c @@ -70,6 +70,10 @@ int ptyc_main(int argc, char ** argv, char ** envp) if ((ptyc_version(dctx)) < 0) return ptyc_exit(dctx,2); + if (!dctx->cctx->eargv) + if (!(dctx->cctx->drvflags & PTYC_DRIVER_DBG_MODE)) + return ptyc_exit(dctx,0); + if (ptyc_alloc_pty(dctx)) return ptyc_exit(dctx,2); |