Ticket #7634: boost-build-maxjobs.patch

File boost-build-maxjobs.patch, 786 bytes (added by Mike Gilbert <floppym@…>, 10 years ago)

Patch

  • tools/build/v2/engine/execunix.c

    diff -Nur boost_1_51_0.orig/tools/build/v2/engine/execunix.c boost_1_51_0/tools/build/v2/engine/execunix.c
    old new  
    392392
    393393    /* Compute max read file descriptor for use in select. */
    394394    FD_ZERO(fds);
    395     for ( i = 0; i < globs.jobs; ++i )
     395    for ( i = 0; i < MAXJOBS && i < globs.jobs; ++i )
    396396    {
    397397        if ( 0 < cmdtab[ i ].fd[ OUT ] )
    398398        {
     
    473473
    474474        if ( 0 < ret )
    475475        {
    476             for ( i = 0; i < globs.jobs; ++i )
     476            for ( i = 0; i < MAXJOBS && i < globs.jobs; ++i )
    477477            {
    478478                int out = 0;
    479479                int err = 0;