Squashed from pr-439 (0e2de1c7, 59cc6176) onto pr-review; import line merged with PR #242's WAIT_OBJECT_0.