I ran into some problems on windows where processes would not release locks when they are being terminated.
For unix systems there is always the option to use Python's singal library and connecting signal.SIGTERM to some callback function that cleanly exists the process.
For windows terminate() calls the windows api's TerminateProcess which triggers no signal at all.
The Process class should provide a shutdown function, that gets called upon terminating a process to ensure graceful termination.
Original report by Jan Werkmann (Bitbucket: 557058:a70cc9cf-684e-4849-a61a-9ade4d7218b5, GitHub: PhyNerd).
I ran into some problems on windows where processes would not release locks when they are being terminated.
For unix systems there is always the option to use Python's singal library and connecting
signal.SIGTERM
to some callback function that cleanly exists the process. For windowsterminate()
calls the windows api'sTerminateProcess
which triggers no signal at all.The
Process
class should provide a shutdown function, that gets called upon terminating a process to ensure graceful termination.