diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-10-30 11:24:15 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-10-30 23:49:00 +1100 |
commit | 046d38faa5e78f2bdcfcdb3b1582427c2ecc80b8 (patch) | |
tree | 3212537bdd1e74cc2153aacb229cab99e2e290db /source4/smbd/process_thread.c | |
parent | 3a7814826989b2ece34b8370c77bce9727814701 (diff) | |
download | samba-046d38faa5e78f2bdcfcdb3b1582427c2ecc80b8.tar.gz samba-046d38faa5e78f2bdcfcdb3b1582427c2ecc80b8.tar.bz2 samba-046d38faa5e78f2bdcfcdb3b1582427c2ecc80b8.zip |
s4-smbd: don't initialise process models more than once
this also removes the event_context parameter from process model
initialisation. It isn't needed, and is confusing when a process model
init can be called from more than one place, possibly with different
event contexts.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/smbd/process_thread.c')
-rw-r--r-- | source4/smbd/process_thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/smbd/process_thread.c b/source4/smbd/process_thread.c index b169a79222..cf94234c34 100644 --- a/source4/smbd/process_thread.c +++ b/source4/smbd/process_thread.c @@ -511,7 +511,7 @@ static void thread_fault_handler(int sig) /* called when the process model is selected */ -static void thread_model_init(struct tevent_context *event_context) +static void thread_model_init(void) { struct mutex_ops m_ops; struct debug_ops d_ops; @@ -520,7 +520,7 @@ static void thread_model_init(struct tevent_context *event_context) ZERO_STRUCT(d_ops); pthread_key_create(&title_key, NULL); - pthread_setspecific(title_key, talloc_strdup(event_context, "")); + pthread_setspecific(title_key, NULL); /* register mutex/rwlock handlers */ m_ops.mutex_init = thread_mutex_init; |