This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: atexit not called for pythonservice (win32)
Type: Stage:
Components: Windows Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: haridsv, loewis
Priority: normal Keywords:

Created on 2005-08-24 20:05 by haridsv, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg26117 - (view) Author: Hari Krishna Dara (haridsv) Date: 2005-08-24 20:05
I have a couple of functions registered with atexit
which work fine when the program is executed on
command-line. But when I run the same as a windows
service, and stop the service using service interface,
these hooks never get call backs. The service does exit
normally (at least my program doesn't do os._exit() and
there are no exceptions).

I am using ActiveState's distribution of python, but I
would imagine this is non-specific.
msg26118 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2005-08-25 11:35
Logged In: YES 
user_id=21627

Well, it is specific in the sense that the Windows service
integration is not part of the standard Python distribution.
So I recommend to report this to pythonwin:

https://sourceforge.net/projects/pywin32/

Closing this report as third-party.
msg26119 - (view) Author: Hari Krishna Dara (haridsv) Date: 2005-08-26 01:53
Logged In: YES 
user_id=344432

Thanks for pointing it out. I have logged an issue at:

https://sourceforge.net/tracker/index.php?func=detail&aid=1273738&group_id=78018&atid=551954
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42304
2005-08-24 20:05:00haridsvcreate