Program crash: GC destroys an object unexpectedly
eugene
dee0xeed at gmail.com
Thu Sep 23 16:53:42 UTC 2021
On Thursday, 23 September 2021 at 15:53:37 UTC, Steven
Schveighoffer wrote:
> Technically, they should live past the end of main, because
> it's still possible to receive signals then.
No, as soon as an application get SIGTERM/SIGINT,
event queue is stopped and we do not need no
more notifications from OS (POLLIN/POLLOUT I mean).
Stopping event queue in this case is just
closing file descriptor obtained from epoll_create().
After this getting POLLIN from any fd (including signal fd) is
just impossible.
More information about the Digitalmars-d-learn
mailing list