Program crash: GC destroys an object unexpectedly

eugene dee0xeed at gmail.com
Thu Sep 23 17:53:00 UTC 2021


On Thursday, 23 September 2021 at 17:49:43 UTC, eugene wrote:
> On Thursday, 23 September 2021 at 17:20:18 UTC, Steven 
> Schveighoffer wrote:
>> 1. ctrl-c, signal handler triggers, shutting down the loop
>> 2. main exits
>> 3. GC finalizes all objects, including the Stopper and it's 
>> members
>
> but both SIGINT and SIGTERM are still **blocked**,
> they just will not reach the process.

oops..

closing epoll fd should be moved from EventQueue dtor to stop() 
method,
then everything will be Ok.



More information about the Digitalmars-d-learn mailing list