diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-10-11 17:08:01 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-10-11 13:02:16 +0000 |
commit | bae09a0921ed6b6885972cbaa4f277e5b2ae3dc7 (patch) | |
tree | d686e2d2e4d47ad8d94b1dfa231137cc07357cee /source4/smbd | |
parent | 42127cdbb040a260c2c745e9114b600f2186794a (diff) | |
download | samba-bae09a0921ed6b6885972cbaa4f277e5b2ae3dc7.tar.gz samba-bae09a0921ed6b6885972cbaa4f277e5b2ae3dc7.tar.bz2 samba-bae09a0921ed6b6885972cbaa4f277e5b2ae3dc7.zip |
s4-smbd Remove event_context_set_default()
The last callers to event_context_find() have been removed
so this is no longer required.
Andrew Bartlett
Diffstat (limited to 'source4/smbd')
-rw-r--r-- | source4/smbd/process_prefork.c | 6 | ||||
-rw-r--r-- | source4/smbd/server.c | 3 |
2 files changed, 0 insertions, 9 deletions
diff --git a/source4/smbd/process_prefork.c b/source4/smbd/process_prefork.c index cec5665237..64941dbeb5 100644 --- a/source4/smbd/process_prefork.c +++ b/source4/smbd/process_prefork.c @@ -114,9 +114,6 @@ static void prefork_new_task(struct tevent_context *ev, /* This is now the child code. We need a completely new event_context to work with */ ev2 = s4_event_context_init(NULL); - /* setup this as the default context */ - s4_event_context_set_default(ev2); - /* the service has given us a private pointer that encapsulates the context it needs for this new connection - everything else will be freed */ @@ -175,9 +172,6 @@ static void prefork_new_task(struct tevent_context *ev, /* But we need a events system to handle reaping children */ ev_parent = s4_event_context_init(NULL); - /* setup this as the default context */ - s4_event_context_set_default(ev_parent); - /* TODO: Handle some events... */ /* we can't return to the top level here, as that event context is gone, diff --git a/source4/smbd/server.c b/source4/smbd/server.c index 2d837dd1fc..37fdd2515a 100644 --- a/source4/smbd/server.c +++ b/source4/smbd/server.c @@ -429,9 +429,6 @@ static int binary_smbd_main(const char *binary_name, int argc, const char *argv[ should hang off that */ event_ctx = s4_event_context_init(talloc_autofree_context()); - /* setup this as the default context */ - s4_event_context_set_default(event_ctx); - if (event_ctx == NULL) { DEBUG(0,("Initializing event context failed\n")); return 1; |