[SSSD] [PATCH] Clean up kdcinfo and kpasswdinfo files when exiting

Stephen Gallagher sgallagh at redhat.com
Tue May 4 20:54:58 UTC 2010


https://fedorahosted.org/sssd/ticket/452


This patch adds a signal handler for SIGTERM that will remove the 
kdcinfo.REALM and kpasswd.REALM files before exiting. I had to move the 
definition of krb5_ctx into krb5_common.h so I could dereference it to 
get the realm name.

I also made the sig_term() function from server.c public, so I could 
chain into it once my exit handler is done (to make sure it cleans up 
any krb5_child processes that might still be in-progress).

-- 
Stephen Gallagher
RHCE 804006346421761

Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Clean-up-kdcinfo-and-kpasswdinfo-files-when-exiting.patch
Type: text/x-patch
Size: 6837 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20100504/20eeaed9/attachment.bin>


More information about the sssd-devel mailing list