diff options
author | midipix <writeonce@midipix.org> | 2016-07-13 21:05:48 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-07-21 03:47:28 -0400 |
commit | f67c207318b2f2e39d67dfbae582186cffa99666 (patch) | |
tree | d5aa7dedc508c41622020883f1673cbe6bd16648 /src/driver | |
parent | 7307c5eee83cbc76de38ab768000dccbae2bf11e (diff) | |
download | ptycon-f67c207318b2f2e39d67dfbae582186cffa99666.tar.bz2 ptycon-f67c207318b2f2e39d67dfbae582186cffa99666.tar.xz |
driver: added --daemon support.
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/ptyc_driver_ctx.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/driver/ptyc_driver_ctx.c b/src/driver/ptyc_driver_ctx.c index 7b0b596..4129cf5 100644 --- a/src/driver/ptyc_driver_ctx.c +++ b/src/driver/ptyc_driver_ctx.c @@ -204,6 +204,15 @@ int ptyc_get_driver_ctx( cctx.drvflags |= PTYC_DRIVER_VERSION; break; + case TAG_DAEMON: + if (!strcmp("always",entry->arg)) + cctx.drvflags |= PTYC_DRIVER_DAEMON_ALWAYS; + + else if (!strcmp("never",entry->arg)) + cctx.drvflags |= PTYC_DRIVER_DAEMON_NEVER; + + break; + case TAG_DEBUG: if (!entry->arg) { cctx.drvflags |= PTYC_DRIVER_DBG_EVENT; |