Morning guys,
I m fairly certain it is not a problem with the win32service code as it works
just fine with a tcp socket
The actual service runs ok and is not stuck. It responds to stop command.
I don't mind sharing the code:
https://github.com/bozhinov/cache-poc
I guess 0mq is not the way to go
I'm currently developing a console program in Python 3.9.
I want to detect the shutdown of Windows and save the data to a file safely.
I created a sample program by referring to the following URL.
https://docs.microsoft.com/en-us/windows/console/registering-a-control-handler-function
However, the
On 3/9/22, H.Fujii wrote:
> I'm currently developing a console program in Python 3.9.
> I want to detect the shutdown of Windows and save the data to a file
> safely.
> I created a sample program by referring to the following URL.
> https://docs.microsoft.com/en-us/windows/console/registering-a-co
I would recommend that you work with an object from a class, and using def
__del__(self):
I think when Windows shutdown, it send a stop/quit signal to all processes.
When your Python is stopped by the OS, it can stop gracefully, and write the
info in the file to backup, before it dies. This coul