From 690c8cefb49c228ad88230596485269627ac3141 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 18 Aug 2016 04:51:06 -0400 Subject: driver: exit as needed after version printing. --- src/driver/ptyc_amain.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/driver') 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); -- cgit v1.2.3