4 * Some text about this example...
15 const char *argv1
[] = { "sh", "-c",
16 "while :; do echo foo; sleep 3; done", NULL
};
17 const char *argv2
[] = { "sh", "-c",
18 "while :; do echo snorkle; sleep 1; done", NULL
};
20 WvPipe
stream1(argv1
[0], argv1
, false, true, false);
21 WvPipe
stream2(argv2
[0], argv2
, false, true, false);
22 stream1
.autoforward(*wvcon
);
23 stream2
.autoforward(*wvcon
);
25 while (stream1
.isok() || stream2
.isok())
27 if (stream1
.select(X
))
29 if (stream2
.select(X
))