genirq/affinity: Remove the 'firstvec' parameter from irq_build_affinity_masks
[linux-block.git] / scripts / jobserver-exec
index 8762887a970ce2479eb6a43ae654c36136369f6c..4192855f5b8b5c1e3b64480c11c8b1e001a89dcd 100755 (executable)
@@ -23,7 +23,9 @@ try:
        opts = [x for x in flags.split(" ") if x.startswith("--jobserver")]
 
        # Parse out R,W file descriptor numbers and set them nonblocking.
-       fds = opts[0].split("=", 1)[1]
+       # If the MAKEFLAGS variable contains multiple instances of the
+       # --jobserver-auth= option, the last one is relevant.
+       fds = opts[-1].split("=", 1)[1]
        reader, writer = [int(x) for x in fds.split(",", 1)]
        # Open a private copy of reader to avoid setting nonblocking
        # on an unexpecting process with the same reader fd.