summaryrefslogtreecommitdiffstats
path: root/source3/smbd/server.c
Commit message (Collapse)AuthorAgeFilesLines
* Use avahi to register _smb._tcp in smbdVolker Lendecke2009-04-151-0/+11
| | | | (cherry picked from commit 55b7bf7338c13701944169df02ab8e9def6d43a1)
* s3:smbd: use tevent_loop_once() in the parent event loopStefan Metzmacher2009-04-151-34/+5
| | | | | | metze (cherry picked from commit 450252d2a1981fb04eb62eb095c1b762a96f7727) (cherry picked from commit 3ccc0bd5ea15da6b4daa53d9dcfb6a283330493d)
* s3:smbd: don't exit the parent when we have no connectionsStefan Metzmacher2009-04-151-7/+0
| | | | | | | | | | This code path can't really happen anymore, because launchd support was removed with commit e5a951325a6cac8567af3a66de6d2df577508ae4. But it's confusing to have that code there... metze (cherry picked from commit 445b37f4f35ff4256c46dbacc2d3b3a1e47e62b2) (cherry picked from commit a527e24b80abf5aeaafdd67db21b5b021d1effe0)
* s3-spoolss: use DSPRINT flags instead of SPOOLS_DS flags.Günther Deschner2009-02-271-1/+1
| | | | Guenther
* More warning fixes for Solaris.Jeremy Allison2009-02-231-1/+1
| | | | Jeremy.
* Do not close an fd we know is -1Volker Lendecke2009-02-211-1/+0
|
* s3: Refactor of madvise() usage in c441f58dSteven Danneman2009-02-201-7/+0
| | | | | * move to reinit_after_fork() to protect all Samba daemons * only protect parent processes
* S3: Stop creating SMBD cores when failing to create a pipe.todd stecher2009-02-181-0/+4
| | | | | | This was uncovered when the MAX FD limit was hit, causing an instant core and invoking error reporting. This fix causes SMBD to exit, but without building a core.
* S3: Allow SMBD processes to survive in low memory condidtionstodd stecher2009-02-181-0/+7
| | | | | | This commit adds a configure argument which allows for setting MADV_PROTECT in the madvise() API. With this enabled the kernel won't kill SMBD when it's running low on memory.
* Fix a valgrind errorVolker Lendecke2009-02-141-1/+5
|
* s3:smbd: make smbd_open_one_socket() staticMichael Adam2009-01-291-3/+3
| | | | Michael
* s3:smbd: ignore open_socket_in() failuresStefan Metzmacher2009-01-291-1/+4
| | | | | | | This restores the pre e0232934fbf69a9e72de1d9844b14d70b34a2d6a behavior. metze
* s3:smbd: wait for new connection via fd eventsStefan Metzmacher2009-01-271-211/+227
| | | | metze
* s3:smbd: make mdns registration event driven.Stefan Metzmacher2009-01-271-15/+10
| | | | metze
* s3:smbd: make inetd code path more clearStefan Metzmacher2009-01-271-24/+20
| | | | metze
* s3:smbd: remove pointless respond_to_all_remaining_local_messages() functionStefan Metzmacher2009-01-271-2/+0
| | | | | | | This the process_kernel_oplock() function never response to messages, it only generates messages to ourself. metze
* s3:smbd: use signal events for SIGTERM, SIGHUP and SIGCHLDStefan Metzmacher2009-01-271-76/+51
| | | | metze
* s3:smbd: move all code that handles a client connection into smbd_process()Stefan Metzmacher2009-01-271-212/+0
| | | | metze
* s3:smbd: we should setup the client socket in the same way in all code pathesStefan Metzmacher2009-01-271-21/+15
| | | | | | We should behave the same in inetd, interactive and deamon modes. metze
* s3:namecache: remove unused namecache_shutdown() functionStefan Metzmacher2009-01-271-2/+0
| | | | metze
* s3:smbd: we don't need to call message_dispatch() anymore it's event ↵Stefan Metzmacher2009-01-221-3/+0
| | | | | | triggered now metze
* s3: always call run_events() before and after sys_select()Stefan Metzmacher2009-01-221-4/+8
| | | | | | And always setup the fd events. metze
* Remove some unused codeVolker Lendecke2009-01-201-3/+0
|
* s3:cluster: fix ctdb ipv6 supportStefan Metzmacher2009-01-161-3/+1
| | | | | | | | | | | | | | | We need to use CTDB_CONTROL_TCP_CLIENT instead of CTDB_CONTROL_TCP_ADD. CTDB_CONTROL_TCP_CLIENT has support for 2 modes in newer ctdb versions: - with struct ctdb_control_tcp it only supports ipv4. - with struct ctdb_control_tcp_addr it supports ipv4 and ipv6. You need new header files which defines struct ctdb_control_tcp_addr, but at runtime it should be fine to work against older ctdb versions (<= 1.0.68). metze
* s3: make better use of ccache by not including version.h in every C-file.Michael Adam2009-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | version.h changes rather frequently. Since it is included via includes.h, this means each C file will be a cache miss. This applies to the following situations: * When building a new package with a new Samba version * building in a git branch after calling mkversion.sh after a new commit (i.e. virtually always) This patch improves the situation in the following way: * remove inlude "version.h" from includes.h * Use samba_version_string() instead of SAMBA_VERSION_STRING in files that use no other macro from version.h instead of SAMBA_VERSION_STRING. * explicitly include "version.h" in those files that use more macros from "version.h" than just SAMBA_VERSION_STRING. Michael
* s3:smbd: move all globals and static variables in globals.[ch]Stefan Metzmacher2009-01-081-39/+23
| | | | | | The goal is to move all this variables into a big context structure. metze
* s3:smbd: variables in a main() don't need to be staticStefan Metzmacher2009-01-081-7/+7
| | | | metze
* s3:smbd: open_sockets_smbd() don't need a static variable arrount atexit()Stefan Metzmacher2009-01-081-7/+1
| | | | | | open_sockets_smbd() is only called once. metze
* clean event context after child is forked.Bo Yang2009-01-051-2/+5
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3 build: Fix warningTim Prouty2008-12-301-0/+2
|
* s3:cluster: register the client connection via CTDB_CONTROL_TCP_ADDStefan Metzmacher2008-12-301-3/+6
| | | | | | | This means we correctly pass IPv6 addresses too. (CTDB_CONTROL_TCP_CLIENT was IPv4 only) metze
* Fix bug #5944 - nmbd does not boot if socket adress = "" is defined in smb.confYasuma Takeda2008-12-051-3/+2
|
* Make us clean under valgrind --leak-check=full by using ↵Jeremy Allison2008-11-061-3/+3
| | | | | | | | | | talloc_autofree_context() instead of NULL. Remove the code in memcache that does a TALLOC_FREE on stored pointers. That's a disaster waiting to happen. If you're storing talloc'ed pointers, you can't know their lifecycle and they should be deleted when their parent context is deleted, so freeing them at some arbitrary point later will be a double-free. Jeremy.
* Remove sys_chroot() - libreplace already provides an alternative.Jelmer Vernooij2008-11-011-1/+1
|
* s3-build: fix the build of smbd.Günther Deschner2008-10-181-1/+1
| | | | Guenther
* Use separate make variables for libutil and libcrypto.Jelmer Vernooij2008-10-181-2/+2
|
* Simply our main loop processing. A lot :-). Correctly use events for all the ↵Jeremy Allison2008-10-031-0/+31
| | | | | | | | previous "special" cases. A step on the way to adding signals to the events and being able to merge the S3 event system with the S4 one. Jeremy.
* Fix for bug #5688 from SATOH Fumiyasu <fumiyas@osstech.co.jp>. LPQ process ↵Jeremy Allison2008-08-141-1/+2
| | | | | | | | is orphaned if socket address parameter is invalid. If the "socket address" parameter is a null string that is an invalid value for Samba 3.2 but valid for Samba 3.0. Jeremy. (This used to be commit c65726d418601cdc86202c0371615e4f7f3d843c)
* smbd: prevent smbd from panicing with "clustering = no" but ↵Michael Adam2008-08-131-1/+3
| | | | | | | --with-cluster-support Michael (This used to be commit a687949d19ba9690f96e7869aa22e4d87840640e)
* added a explanatory comment on tcon checkAndrew Tridgell2008-08-131-0/+4
| | | | (This used to be commit f2ab2cebb9b81453dc0b6370288b85909182ae49)
* ensure we exit with non-zero status on EOF on socket, so the parentAndrew Tridgell2008-08-131-3/+8
| | | | | can trigger a brlock db cleanup (This used to be commit bbd49f9e1c4b50c4a596fb991f3306e1e90c0177)
* fixed child exit handling and IP release handlingAndrew Tridgell2008-08-131-1/+3
| | | | (This used to be commit 6fe27d296c389473c24e8c627a61bd56b364ad9f)
* log unclean shutdownsAndrew Tridgell2008-08-131-0/+1
| | | | (This used to be commit 30b83245a22ebd5e4fa4739dd2aa1805373a7eb2)
* register the ctdbd reconfigure messageAndrew Tridgell2008-08-131-0/+4
| | | | (This used to be commit 9d3217bb28765e107c230fb90b578dcc6f5d4375)
* first cut at adding full transactions for ctdb to samba3Andrew Tridgell2008-08-131-7/+0
| | | | (This used to be commit f91a3e0f7b7737c1d0667cd961ea950e2b93e592)
* smbd: untangle logic in smbd_messaging_context() slightly.Michael Adam2008-06-261-2/+5
| | | | | Michael (This used to be commit fae4c21b14b9d288e06f6b4b4e1527e2c6d58dca)
* smbd: don't panic if messaging_init() fails but return NULLMichael Adam2008-06-261-1/+1
| | | | | | | | | | leaving panic or more appropriate action to callers. This can for instance happen in a clustered setup, when ctdb is not running. This allows for a more defined behaviour, reducing chicken-egg-problems. Michael (This used to be commit 3b6541ff483d5fea4fd30bb6a01a560c05028d4e)
* Allow server manager to close open files selected by id.Jeremy Allison2008-05-271-0/+2
| | | | | Jeremy. (This used to be commit 7eeed8bb41059ec2bddedb6a71deddeec7f33af2)
* Fix CLEAR_IF_FIRST handling of messages.tdbVolker Lendecke2008-04-231-2/+3
| | | | | | | | We now open messages.tdb even before we do the become_daemon. become_daemon() involves a fork and an immediate exit of the parent, thus the parent_is_longlived argument must be set to false in this case. The parent is not really long lived :-) (This used to be commit 4f4781c6d17fe2db34dd5945fec52a7685448aec)
* smbd: create the messaging conntext earlierStefan Metzmacher2008-04-181-11/+16
| | | | | metze (This used to be commit 658d8475336c4397e0dad341f216baf9e1eb6aaf)