MINGW condition in job count

Closes #330
This commit is contained in:
Buck Ryan 2022-09-22 14:01:08 -04:00
parent 5763a35cc0
commit 0055f7c2b7

View file

@ -9,7 +9,8 @@ class Segment(ThreadedSegment):
def run(self):
self.num_jobs = 0
if platform.system().startswith("CYGWIN"):
system = platform.system()
if system.startswith("CYGWIN") or system.startswith("MINGW"):
# cygwin ps is a special snowflake...
output_proc = subprocess.Popen(["ps", "-af"], stdout=subprocess.PIPE)
output = map(lambda l: int(l.split()[2].strip()),