summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dmake/dag.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/dmake/dag.c b/dmake/dag.c
index 41a52e5a0273..ab5f7d9400c7 100644
--- a/dmake/dag.c
+++ b/dmake/dag.c
@@ -1,6 +1,6 @@
/* $RCSfile: dag.c,v $
--- $Revision: 1.11 $
--- last change: $Author: ihi $ $Date: 2007-10-15 15:38:09 $
+-- $Revision: 1.12 $
+-- last change: $Author: kz $ $Date: 2008-03-05 18:27:48 $
--
-- SYNOPSIS
-- Routines to construct the internal dag.
@@ -87,6 +87,12 @@ HASHPTR hp;
if( tvalue < 1 )
Fatal( "Process limit value must be > 1" );
+#if defined(USE_CREATEPROCESS)
+ if( Max_proclmt > MAXIMUM_WAIT_OBJECTS )
+ Fatal( "Specified maximum # of processes (MAXPROCESSLIMIT)"
+ " exceeds OS limit of [%d].", MAXIMUM_WAIT_OBJECTS );
+#endif
+
if( Max_proc > Max_proclmt )
Fatal( "Specified # of processes exceeds limit of [%d]",
Max_proclmt );