summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-06-10 11:54:00 -0400
committerSimo Sorce <idra@samba.org>2010-06-10 17:30:45 -0400
commit5e576a53abbf2822c0a8fcc87f76140a755599e4 (patch)
treef026e75c6e9ab5e3dc3631be43930868ce76d077 /source3/smbd/server.c
parentaeb25ad0b87af2a2af7735f49744a677ebf4fe06 (diff)
downloadsamba-5e576a53abbf2822c0a8fcc87f76140a755599e4.tar.gz
samba-5e576a53abbf2822c0a8fcc87f76140a755599e4.tar.bz2
samba-5e576a53abbf2822c0a8fcc87f76140a755599e4.zip
s3:lib make server contexts generic
Pair-programmed-with: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r--source3/smbd/server.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index a7297d6863..2bb0bb87fe 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -49,18 +49,7 @@ int get_client_fd(void)
struct event_context *smbd_event_context(void)
{
- if (!smbd_event_ctx) {
- /*
- * Note we MUST use the NULL context here, not the
- * autofree context, to avoid side effects in forked
- * children exiting.
- */
- smbd_event_ctx = event_context_init(NULL);
- }
- if (!smbd_event_ctx) {
- smb_panic("Could not init smbd event context");
- }
- return smbd_event_ctx;
+ return server_event_context();
}
/*******************************************************************