projects
/
xboard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve variant recognition for enabling buttons (XB)
[xboard.git]
/
usystem.c
diff --git
a/usystem.c
b/usystem.c
index
4a08e57
..
0d0a847
100644
(file)
--- a/
usystem.c
+++ b/
usystem.c
@@
-5,7
+5,7
@@
* Massachusetts.
*
* Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006,
* Massachusetts.
*
* Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006,
- * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
+ * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
, 2015
Free Software Foundation, Inc.
*
* The following terms apply to Digital Equipment Corporation's copyright
* interest in XBoard:
*
* The following terms apply to Digital Equipment Corporation's copyright
* interest in XBoard:
@@
-650,18
+650,20
@@
OpenRcmd (char *host, char *user, char *cmd, ProcRef *pr)
return -1;
}
return -1;
}
+Boolean stdoutClosed = FALSE;
+
int
OutputToProcess (ProcRef pr, char *message, int count, int *outError)
{
static int line = 0;
ChildProc *cp = (ChildProc *) pr;
int
OutputToProcess (ProcRef pr, char *message, int count, int *outError)
{
static int line = 0;
ChildProc *cp = (ChildProc *) pr;
- int outCount;
+ int outCount
= count
;
if (pr == NoProc)
{
if (pr == NoProc)
{
- if (appData.noJoin || !appData.useInternalWrap)
- outCount = fwrite(message, 1, count, stdout);
- else
+ if (appData.noJoin || !appData.useInternalWrap)
{
+
if(!stdoutClosed)
outCount = fwrite(message, 1, count, stdout);
+
}
else
{
int width = get_term_width();
int len = wrap(NULL, message, count, width, &line);
{
int width = get_term_width();
int len = wrap(NULL, message, count, width, &line);