Merge pull request #1471 from veprbl/fdsetsize
Do not try to fill fd_set with fd>=FD_SETSIZE
This commit is contained in:
		
						commit
						3162ad5ff4
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -3835,6 +3835,9 @@ void Worker::waitForInput() | ||||||
|     int fdMax = 0; |     int fdMax = 0; | ||||||
|     for (auto & i : children) { |     for (auto & i : children) { | ||||||
|         for (auto & j : i.fds) { |         for (auto & j : i.fds) { | ||||||
|  |             if (j >= FD_SETSIZE) { | ||||||
|  |                 throw BuildError("reached FD_SETSIZE limit"); | ||||||
|  |             } | ||||||
|             FD_SET(j, &fds); |             FD_SET(j, &fds); | ||||||
|             if (j >= fdMax) fdMax = j + 1; |             if (j >= fdMax) fdMax = j + 1; | ||||||
|         } |         } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue