PolicyKit/polkitd polkit-session.c,1.2,1.3

David Zeuthen david at kemper.freedesktop.org
Thu Mar 16 16:21:33 PST 2006


Update of /cvs/hal/PolicyKit/polkitd
In directory kemper:/tmp/cvs-serv11695/polkitd

Modified Files:
	polkit-session.c 
Log Message:
2006-03-16  David Zeuthen  <davidz at redhat.com>

        * polkitd/polkit-session.c (polkit_session_close): Remember to
        kill the child here



Index: polkit-session.c
===================================================================
RCS file: /cvs/hal/PolicyKit/polkitd/polkit-session.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- polkit-session.c	16 Mar 2006 23:28:47 -0000	1.2
+++ polkit-session.c	17 Mar 2006 00:21:31 -0000	1.3
@@ -887,6 +887,10 @@
 	if (!polkit_session_check_caller (session, context))
 		return FALSE;
 
+	/* if we have a child... kill it  */
+	if (session->priv->child_pid != 0)
+		kill (session->priv->child_pid, SIGTERM);
+
 	if (!do_not_revoke_privilege && session->priv->have_granted_temp_privileges) {
 
 		if (!polkit_manager_remove_temporary_privilege (session->priv->manager,




More information about the hal-commit mailing list