mirror of
https://github.com/dart-lang/sdk
synced 2024-10-02 23:24:42 +00:00
[dart:io][windows] Set the last error when a signal is unsupported
fixes #28603 R=fschneider@google.com Review-Url: https://codereview.chromium.org/2779373004 .
This commit is contained in:
parent
141b6351ba
commit
cc10a46a1d
|
@ -983,6 +983,7 @@ intptr_t GetWinSignal(intptr_t signal) {
|
|||
intptr_t Process::SetSignalHandler(intptr_t signal) {
|
||||
signal = GetWinSignal(signal);
|
||||
if (signal == -1) {
|
||||
SetLastError(ERROR_NOT_SUPPORTED);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue