dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit 7d7ae91830e41c1064529936bfa928e0f61bd87b
parent c4d73fa0397601a4aa9bfae828e877b12951d893
Author: Marc Andre Tanner <mat@brain-dump.org>
Date:   Mon, 16 Jun 2008 00:56:53 +0200

Set DVTM_CMD_FIFO environment variable

Set DVTM_CMD_FIFO environment variable which holds the file name of the
named pipe as given on the command line.

This allows childs to control dvtm with commands as defined in config.h.

Diffstat:
dvtm.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dvtm.c b/dvtm.c @@ -885,7 +885,9 @@ parse_args(int argc, char *argv[]) { if (++arg >= argc) usage(); cmdfd = open_or_create_fifo(argv[arg]); - cmdpath = argv[arg]; + if (!(cmdpath = get_realpath(argv[arg]))) + error("%s\n", strerror(errno)); + setenv("DVTM_CMD_FIFO", cmdpath, 1); break; #endif default: