summaryrefslogtreecommitdiffhomepage
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-08-18 04:51:06 -0400
committermidipix <writeonce@midipix.org>2016-08-18 11:18:33 -0400
commit690c8cefb49c228ad88230596485269627ac3141 (patch)
treef0c725b7b46db8dbb115339c102a03cb7ea84da7 /src/driver
parent16c3a668228f843fb995c75dfffe5e291259eae0 (diff)
downloadptycon-690c8cefb49c228ad88230596485269627ac3141.tar.bz2
ptycon-690c8cefb49c228ad88230596485269627ac3141.tar.xz
driver: exit as needed after version printing.
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/ptyc_amain.c4
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);