Skip to content

ch20-03 suggest that implementing drop trait will gracefuly shut down the ThreadPool when CTRL-C in effect. #2331

Open
@Rotwang

Description

@Rotwang

ch20-03 suggest that implementing drop trait will gracefuly shut down the ThreadPool when CTRL-C in effect. Which is not the case for Linux (tested on ubuntu 18.04). The default action for SIGINT is termination of the process by kernel (so my understanding is that the drop's are not being run at all).

I find it to be a bit misleading.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions