summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index 132421b..ec92f01 100644
--- a/main.c
+++ b/main.c
@@ -1321,8 +1321,9 @@ int main (int argc, char ** argv)
{
char *cp;
- if (jobserver_fds->idx > 1)
- fatal (NILF, _("internal error: multiple --jobserver-fds options"));
+ for (i=1; i < jobserver_fds->idx; ++i)
+ if (!streq (jobserver_fds->list[0], jobserver_fds->list[i]))
+ fatal (NILF, _("internal error: multiple --jobserver-fds options"));
/* Now parse the fds string and make sure it has the proper format. */