diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-01-05 20:40:19 -0800 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-01-08 16:26:17 +0100 |
commit | 29159131ec51311b3bd9e2fd1877361d2368e8c3 (patch) | |
tree | e4616025091406f6f6899412acabec07930ab291 /source/winbindd/winbindd_dual.c | |
parent | 94e57bb795b88ffcb6af774cf3bf8acf7ff72d32 (diff) | |
download | samba-29159131ec51311b3bd9e2fd1877361d2368e8c3.tar.gz samba-29159131ec51311b3bd9e2fd1877361d2368e8c3.tar.xz samba-29159131ec51311b3bd9e2fd1877361d2368e8c3.zip |
s3:winbindd: cancel all ccache entry events and not just one
cancel_named_event() is stupid by design and also only cancels
one single event.
metze
(cherry picked from commit d605077effaf265ea4df66fcaf9007004db61acc)
Diffstat (limited to 'source/winbindd/winbindd_dual.c')
-rw-r--r-- | source/winbindd/winbindd_dual.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source/winbindd/winbindd_dual.c b/source/winbindd/winbindd_dual.c index 2ce310ceaae..7fe003b173f 100644 --- a/source/winbindd/winbindd_dual.c +++ b/source/winbindd/winbindd_dual.c @@ -1206,6 +1206,10 @@ static bool fork_domain_child(struct winbindd_child *child) close_conns_after_fork(); + /* Ensure we're not handling an event inherited from + our parent. */ + ccache_remove_all_after_fork(); + if (!override_logfile) { lp_set_logfile(child->logfilename); reopen_logs(); @@ -1269,12 +1273,6 @@ static bool fork_domain_child(struct winbindd_child *child) } } - /* Ensure we're not handling an event inherited from - our parent. */ - - cancel_named_event(winbind_event_context(), - "krb5_ticket_refresh_handler"); - /* We might be in the idmap child...*/ if (child->domain && !(child->domain->internal) && lp_winbind_offline_logon()) { |