2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 00:12:11 +00:00
Files
build/src/engine
Jonathan Neuschäfer 8b2054417c Avoid 100% CPU utilization if no timeout is set
While building boost, I noticed that jam0 and bjam used 100% of a CPU.
Strace showed that they were calling poll with a zero timeout in a loop.
This is because:
- the logic in exec_wait() initializes select_timeout to globs.timeout
- globs.timeout is zero when no action timeout is specified
- poll interprets a zero timeout as "return immediately" rather than
  "wait indefinitely".

Fix this by passing -1 to poll when globs.timeout is zero.
2018-04-02 15:20:57 +02:00
..
2017-05-17 21:13:46 -04:00
2013-12-20 11:33:30 +01:00
2016-03-10 09:30:04 +03:00
2015-10-24 12:21:31 -05:00
2015-10-24 12:21:31 -05:00
2017-10-28 23:21:40 -05:00
2017-04-26 14:22:06 -06:00
2017-10-28 23:21:40 -05:00
2013-04-13 22:34:45 +00:00
2016-03-04 11:11:40 -07:00
2011-02-08 18:46:03 +00:00
2017-03-01 09:50:57 -07:00
2015-12-14 02:46:44 -05:00
2017-10-28 23:21:40 -05:00