From ede438f04512ef39fcbf46d02722661f42276913 Mon Sep 17 00:00:00 2001 From: Antti Kantee Date: Tue, 20 Oct 2015 23:36:49 +0000 Subject: [PATCH] Don't accept pipe runmode for now. Implementing it is a bit more difficult than imagined ... --- lib/librumprun_base/config.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/librumprun_base/config.c b/lib/librumprun_base/config.c index 7216cac..5d59a56 100644 --- a/lib/librumprun_base/config.c +++ b/lib/librumprun_base/config.c @@ -198,10 +198,12 @@ addbin(jsmntok_t *t, char *data) if (t_runmode) { bool sizeok = T_SIZE(t_runmode) == 1; - if (sizeok && *T_STR(t_runmode,data) == '|') { - rreflags = RUMPRUN_EXEC_PIPE; - } else if (sizeok && *T_STR(t_runmode,data) == '&') { + if (sizeok && *T_STR(t_runmode,data) == '&') { rreflags = RUMPRUN_EXEC_BACKGROUND; +#ifdef notyet + } else if (sizeok && *T_STR(t_runmode,data) == '|') { + rreflags = RUMPRUN_EXEC_PIPE; +#endif } else { errx(1, "invalid runmode \"%.*s\" for bin \"%.*s\"", T_PRINTFSTAR(t_runmode, data), -- 2.39.5