Commit 75276343 authored by David Zeuthen's avatar David Zeuthen

Remember to kill the child here

parent 11176b6b
2006-03-16 David Zeuthen <davidz@redhat.com>
* polkitd/polkit-session.c (polkit_session_close): Remember to
kill the child here
2006-03-16 David Zeuthen <davidz@redhat.com>
* polkitd/main.c (main): Bail if we can't become primary owner
......
......@@ -887,6 +887,10 @@ polkit_session_close (PolicyKitSession *session,
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,
......
......@@ -198,6 +198,13 @@ out:
g_error_free (error);
}
if (!org_freedesktop_PolicyKit_Session_close (session,
TRUE,
&error)) {
g_warning ("Close: %s", error->message);
g_error_free (error);
}
exit (0);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment