]> xenbits.xensource.com Git - osstest/rumprun.git/commitdiff
Don't accept pipe runmode for now.
authorAntti Kantee <pooka@iki.fi>
Tue, 20 Oct 2015 23:36:49 +0000 (23:36 +0000)
committerAntti Kantee <pooka@iki.fi>
Wed, 21 Oct 2015 00:30:08 +0000 (00:30 +0000)
Implementing it is a bit more difficult than imagined ...

lib/librumprun_base/config.c

index 7216cacc3cee96e6da7945dd4afb847f264e619e..5d59a56cc7d682698f8de98e68c41b1e10dc33fb 100644 (file)
@@ -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),