dart-sdk/runtime
Jonas Termansen f688645909 [dart:io] [vm] Fix poll(2) loop while waiting for a process to exit.
The loop didn't correctly handle if the fd closed wasn't the last in the
list, instead it would skip an entry and would accidentally consider the
closed entry twice.

The error handling was also wrong, where a file descriptor could be
closed multiple times if an error occured after one of the file
descriptors had already been closed. Additionally the POLLERR and
POLLNVAL conditions were not handled.

Fixes https://github.com/dart-lang/sdk/issues/40441.

Change-Id: I4b4da067bbaf40af329e37ccf45d85f8bbf6c914
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134723
Commit-Queue: Jonas Termansen <sortie@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2020-02-06 16:40:32 +00:00
..
bin [dart:io] [vm] Fix poll(2) loop while waiting for a process to exit. 2020-02-06 16:40:32 +00:00
docs [vm/docs] Publish "Introduction to Dart VM" source and build tools. 2020-02-04 09:04:32 +00:00
include [vm/embedder] Add documentation to Dart_CompileToKernel 2020-01-31 15:03:42 +00:00
lib [VM/nnbd] Consider nullability of type parameters in function type tests. 2020-02-06 01:45:29 +00:00
llvm_codegen [llvm_codegen] Use exclusively SExpression support from VM and nothing else. 2019-10-30 16:27:04 +00:00
observatory [vm/concurrency] Make some service tests more robust 2020-02-05 22:02:19 +00:00
platform Reland "[ VM / DartDev ] Added support for format and pub commands via standalone VM" 2020-02-06 00:04:09 +00:00
tests/vm Revert "[vm/aot] Remove object wrapping of bare instructions for AOT snapshots." 2020-02-04 17:32:28 +00:00
third_party Mass format python with yapf 2019-08-05 20:34:31 +00:00
tools [ DartFuzz ] Disable floating point operations when comparing different architectures 2020-02-06 02:00:49 +00:00
vm [kernel] Add Class.hasConstConstructor and Member.isNonNullableByDefault predicates 2020-02-06 12:27:37 +00:00
.clang-tidy [vm] Add runtime/.clang-tidy file 2019-09-05 09:51:13 +00:00
.gitignore
BUILD.gn [vm] Reland the flag flip behind the --nnbd build flag 2020-01-30 23:41:19 +00:00
codereview.settings
configs.gni [VM/runtime] - Remove DART_NO_SNAPSHOT 2020-01-08 18:56:21 +00:00
CPPLINT.cfg
PRESUBMIT.py Mass format python with yapf 2019-08-05 20:34:31 +00:00
runtime_args.gni [vm] DBC is obsolete. Remove dead code. 2019-10-27 18:18:29 +00:00