diff options
author | Jeremy Allison <jra@samba.org> | 2005-05-03 07:33:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:56:46 -0500 |
commit | 7b9d6ac23e1a7d8136fffd2e3977b09a815da65a (patch) | |
tree | c224433cb1cbc7ff17bd03aca1b564ebeefe15a2 /source3/smbd | |
parent | 114067ced1d301a3c8b67aee0af0eab771d44dd4 (diff) | |
download | samba-7b9d6ac23e1a7d8136fffd2e3977b09a815da65a.tar.gz samba-7b9d6ac23e1a7d8136fffd2e3977b09a815da65a.tar.bz2 samba-7b9d6ac23e1a7d8136fffd2e3977b09a815da65a.zip |
r6595: This is Volkers new-talloc patch. Just got the go-ahead from
Volker to commit. Woo Hoo !
Jeremy.
(This used to be commit 316df944a456f150944761dab34add5e8c4ab699)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/server.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 9d910cd14a..301534d750 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -747,6 +747,10 @@ void build_options(BOOL screen); log_stdout = True; } + if (interactive && (DEBUGLEVEL >= 9)) { + talloc_enable_leak_report(); + } + if (log_stdout && Fork) { DEBUG(0,("ERROR: Can't log to stdout (-S) unless daemon is in foreground (-F) or interactive (-i)\n")); exit(1); @@ -952,14 +956,6 @@ void build_options(BOOL screen); namecache_shutdown(); - if (interactive) { - TALLOC_CTX *mem_ctx = talloc_init("end_description"); - char *description = talloc_describe_all(mem_ctx); - - DEBUG(3, ("tallocs left:\n%s\n", description)); - talloc_destroy(mem_ctx); - } - exit_server("normal exit"); return(0); } |