summaryrefslogtreecommitdiff
path: root/job.h
diff options
context:
space:
mode:
authorFrank Heckenbach <f.heckenbach@fh-soft.de>2013-04-14 15:38:07 -0400
committerPaul Smith <psmith@gnu.org>2013-04-14 15:38:07 -0400
commitcb64352c75f0da8979c9addd37b2b78bb97d5301 (patch)
treecfc17e9359b14ed657e46d6092f55b921a1047f2 /job.h
parent6a52395ed14e0bda22be3fc0819e4507a71278e1 (diff)
downloadgunmake-cb64352c75f0da8979c9addd37b2b78bb97d5301.tar.gz
Initial patch for output synchronization. See Savannah bug #33138.
Based on work by David Boyce <David.S.Boyce@gmail.com>.
Diffstat (limited to 'job.h')
-rw-r--r--job.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/job.h b/job.h
index 0b594a1..8d32bd7 100644
--- a/job.h
+++ b/job.h
@@ -34,6 +34,10 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
# define CLOSE_ON_EXEC(_d) (void) fcntl ((_d), F_SETFD, FD_CLOEXEC)
#endif
+#ifdef POSIX /* PARALLEL_SYNC */
+#define PARALLEL_SYNC
+#endif /* POSIX */
+
/* Structure describing a running or dead child process. */
struct child
@@ -60,6 +64,10 @@ struct child
unsigned int good_stdin:1; /* Nonzero if this child has a good stdin. */
unsigned int deleted:1; /* Nonzero if targets have been deleted. */
unsigned int dontcare:1; /* Saved dontcare flag. */
+#ifdef PARALLEL_SYNC
+ int outfd; /* Optional file descriptor for saving stdout */
+ int errfd; /* Optional file descriptor for saving stderr */
+#endif /* PARALLEL_SYNC */
};
extern struct child *children;