From 4e70fad8a3472f7d8d95a32160de477ca3ea311a Mon Sep 17 00:00:00 2001 From: crunchy Date: Mon, 25 Aug 2003 19:38:57 +0000 Subject: add patch from Brad Behm which enables mpiosh to be used as a backend (redirection of stdout and stdin) --- mpiosh/mpiosh.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mpiosh/mpiosh.c b/mpiosh/mpiosh.c index 54b48df..eb20845 100644 --- a/mpiosh/mpiosh.c +++ b/mpiosh/mpiosh.c @@ -2,7 +2,7 @@ /* * - * $Id: mpiosh.c,v 1.26 2003/04/19 11:41:26 germeier Exp $ + * $Id: mpiosh.c,v 1.27 2003/08/25 19:38:57 crunchy Exp $ * * Author: Andreas Büsching * @@ -110,6 +110,10 @@ main(int argc, char *argv[]) { mpiosh_readline_pipe(); } + if( !isatty(fileno(stdout)) ) { + setvbuf( stdout, NULL, _IOLBF, 256 ); + } + if (!mpiosh.dev && interactive) { printf("ERROR: %s\n", mpio_strerror(mpio_errno())); printf("could not find MPIO player.\n"); -- cgit v1.2.3