diff options
author | crunchy <crunchy> | 2003-08-25 19:38:57 +0000 |
---|---|---|
committer | crunchy <crunchy> | 2003-08-25 19:38:57 +0000 |
commit | 4e70fad8a3472f7d8d95a32160de477ca3ea311a (patch) | |
tree | 4b56d7aca16d9f48cced1dbdaa4f586e48722953 /mpiosh | |
parent | cf257641a3997decab786dbfa9c14b4b5e9640c8 (diff) | |
download | mpiosh-4e70fad8a3472f7d8d95a32160de477ca3ea311a.tar.gz mpiosh-4e70fad8a3472f7d8d95a32160de477ca3ea311a.tar.bz2 mpiosh-4e70fad8a3472f7d8d95a32160de477ca3ea311a.zip |
add patch from Brad Behm <bbrehm@shaw.ca> which enables mpiosh to be used as a backend (redirection of stdout and stdin)
Diffstat (limited to 'mpiosh')
-rw-r--r-- | mpiosh/mpiosh.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 <crunchy@tzi.de> * @@ -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"); |