mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-12-02 00:12:28 +08:00
Fix bug with std::raise(0) (#124)
A bug has been introduced in:
478d7e8bca
I purposefully allowed raising the signal zero, because I thought this
was doing nothing. See the response:
https://stackoverflow.com/a/32260528/5112390
but this is different on Windows.
See:
https://github.com/ArthurSonzogni/FTXUI/issues/117
This commit is contained in:
parent
20a05e99ca
commit
ba5826eab7
@ -205,6 +205,7 @@ void OnExit(int signal) {
|
|||||||
on_exit_functions.top()();
|
on_exit_functions.top()();
|
||||||
on_exit_functions.pop();
|
on_exit_functions.pop();
|
||||||
}
|
}
|
||||||
|
if (signal)
|
||||||
std::raise(signal);
|
std::raise(signal);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user