Module Name: src
Committed By: sjg
Date: Wed Feb 12 16:50:37 UTC 2020
Modified Files:
src/usr.bin/make: meta.c
Log Message:
meta_compat_parent check for USE_FILEMON
patch from Soeren Tempel
To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 src/usr.bin/make/meta.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/meta.c
diff -u src/usr.bin/make/meta.c:1.78 src/usr.bin/make/meta.c:1.79
--- src/usr.bin/make/meta.c:1.78 Thu Feb 6 01:13:19 2020
+++ src/usr.bin/make/meta.c Wed Feb 12 16:50:37 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: meta.c,v 1.78 2020/02/06 01:13:19 sjg Exp $ */
+/* $NetBSD: meta.c,v 1.79 2020/02/12 16:50:37 sjg Exp $ */
/*
* Implement 'meta' mode.
@@ -1686,7 +1686,11 @@ meta_compat_parent(pid_t child)
meta_job_parent(NULL, child);
close(childPipe[1]); /* child side */
outfd = childPipe[0];
+#ifdef USE_FILEMON
metafd = Mybm.filemon ? filemon_readfd(Mybm.filemon) : -1;
+#else
+ metafd = -1;
+#endif
maxfd = -1;
if (outfd > maxfd)
maxfd = outfd;