Stefan Metzmacher
197c25487e
smbd: make sure the parent smbd stays alive forever
...
The problem was that the parent smbd doesn't have
any event when the process model standard was in use.
Now we always add an fd event for stdin, but may not
ask for any events to trigger.
metze
(This used to be commit fa6c00734c
)
2008-06-20 11:03:12 +02:00
Andrew Bartlett
00bde569b7
Fix segfault caused by talloc_free() being called while still processing
...
The problem here was that with the packet code set to serialise, we
can have multiple packets 'processing' at once, and previously the
second packet (allowed because we are spining on an event context down
the stack) would clear the flag.
Andrew Bartlett
(This used to be commit 3378911124
)
2008-06-19 17:59:57 +10:00
Simo Sorce
2daf2897d5
Use a custom init function for samba4 that sets a samba4
...
specific debug function.
By default do not debug, this is the most appropriate action for a library
as we cannot assume what stderr is use for in the main app.
The main app is responsible to set ev_debug_stderr if they so desire.
(This used to be commit e566a2f308
)
2008-06-14 13:00:53 -04:00
Jelmer Vernooij
21a11373e0
Fix prototype for pthread process model.
...
(This used to be commit 280c411613
)
2008-06-14 12:14:27 +02:00
Andrew Bartlett
baa2dffdf3
Bring up the ntp signing deamon
...
This starts ntp_signd at startup, and fixes some build issues.
Andrew Bartlett
(This used to be commit cb0dcd5c3d
)
2008-05-28 13:21:26 +10:00
Jelmer Vernooij
4c70cda986
Fix a couple (well, little more than that..) of typos.
...
(This used to be commit a6b5211994
)
2008-05-18 23:02:47 +02:00
Jelmer Vernooij
4c8756f147
Create prototype headers from Makefile directory, without smb_build in the middle.
...
(This used to be commit f4a77b96f9
)
2008-05-18 22:30:08 +02:00
Jelmer Vernooij
137ec6e340
Use variables for source directory in a couple more places.
...
(This used to be commit 2860a7db59
)
2008-05-18 19:46:09 +02:00
Jelmer Vernooij
4f0db42958
Use variables for source directory in a couple more places.
...
(This used to be commit 56bb2907c6
)
2008-05-18 19:41:33 +02:00
Stefan Metzmacher
250478d044
smbd: pass down lp_ctx to stream_new_connection_merge()
...
metze
(This used to be commit 91e9062265
)
2008-05-17 02:15:18 +02:00
Stefan Metzmacher
626b2da5a9
smbd: add session_info to struct stream_connection
...
NULL represents an anoymous connection, as that's
cheaper than always calling auth_anonymous_session_info(),
That means if the caller wants to use the transport layer
session_info he should call auth_anonymous_session_info()
to create the session info.
metze
(This used to be commit 3777d0307b
)
2008-05-17 01:54:18 +02:00
Jelmer Vernooij
b5d84a74d1
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
...
Conflicts:
source/auth/credentials/config.mk
source/auth/gensec/config.mk
source/build/smb_build/makefile.pm
source/heimdal_build/config.mk
source/lib/events/config.mk
source/lib/nss_wrapper/config.mk
source/lib/policy/config.mk
source/lib/registry/config.mk
source/lib/socket_wrapper/config.mk
source/lib/tdb/config.mk
source/lib/tls/config.mk
source/lib/util/config.mk
source/libcli/config.mk
source/libcli/ldap/config.mk
source/libnet/config.mk
source/librpc/config.mk
source/param/config.mk
source/rpc_server/config.mk
source/scripting/ejs/config.mk
source/smbd/process_model.mk
(This used to be commit 760378e029
)
2008-04-08 03:45:06 +02:00
Jelmer Vernooij
afe3e8172d
Install public header files again and include required prototypes.
...
(This used to be commit 47ffbbf674
)
2008-04-02 04:53:27 +02:00
Jelmer Vernooij
39b2fc37f2
Add context pointer to secrets functions.
...
(This used to be commit 873941d8a8
)
2008-04-01 15:26:00 +02:00
Jelmer Vernooij
f41b9a9dde
Rename libsamba-config to libsamba-hostconfig.
...
(This used to be commit c46b7e90e3
)
2008-04-01 15:08:30 +02:00
Jelmer Vernooij
fb6fdfce37
Fix the build.
...
(This used to be commit f2e4974471
)
2008-03-08 17:02:40 +01:00
Jelmer Vernooij
2bf39edc9d
Push SOVERSION and VERSION out of perl code.
...
(This used to be commit 0ba8ac6a14
)
2008-03-08 15:28:12 +01:00
Jelmer Vernooij
6cf92e604d
Fix the build.
...
(This used to be commit 49ef8d0c19
)
2008-03-04 13:06:08 +01:00
Jelmer Vernooij
b29d47edcf
Move object file lists to the Makefile.
...
(This used to be commit a7e6d2a183
)
2008-03-03 18:25:28 +01:00
Jelmer Vernooij
d8d9a6ef04
Move manpage management out of the perl build system.
...
(This used to be commit 1dd6bea507
)
2008-02-29 14:12:23 +01:00
Jelmer Vernooij
c8011b5d09
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3
...
Conflicts:
source/scripting/python/config.mk
(This used to be commit 0ac0ea660a
)
2008-02-29 12:45:46 +01:00
Jelmer Vernooij
2ba62662f8
Remove sDefault as static variable.
...
(This used to be commit 16f36ce499
)
2008-02-28 20:04:58 +01:00
Jelmer Vernooij
5374be2acb
More share_init to more apprioriate place.
...
(This used to be commit 9901355176
)
2008-02-28 18:06:23 +01:00
Jelmer Vernooij
649f820998
Set lp_ctx properly.
...
(This used to be commit 5d274f19ae
)
2008-02-27 19:37:04 +01:00
Jelmer Vernooij
c8af9559dc
Move manpage management out of the perl build system.
...
(This used to be commit a660ab262e
)
2008-02-26 15:11:47 +01:00
Stefan Metzmacher
3fa76092e6
Happy New Year 2008! :-)
...
metze
(This used to be commit a601ecff4e
)
2008-02-22 14:08:13 +01:00
Jelmer Vernooij
0020793515
Fix static module list generation for ldb.
...
(This used to be commit 92c1c0e913
)
2008-02-20 03:40:44 +01:00
Stefan Metzmacher
3a0cfad223
prefork: also reload stuff in the client processes
...
metze
(This used to be commit 36012c386b
)
2008-02-06 14:44:20 +01:00
Andrew Bartlett
24d0587752
Clarify nomaclature of socket names in process_single and process_prefork
...
Fix talloc_steal in both cases to steal connected socket (from accept)
onto it's private structure, rather than stealing the bound socket.
Remove termination code from the prefork modal, we want the process to
still stay around, to serve future clients.
Andrew Bartlett and David Disseldorp
(This used to be commit 07590d893e
)
2008-02-05 14:51:01 +11:00
Andrew Bartlett
0f8eeb81ec
Remove useless layer of indirection, where every service called
...
task_service_init() manually. Now this is called from service.c for
all services.
Andrew Bartlett
(This used to be commit 9c9a4731ca
)
2008-02-04 21:58:29 +11:00
Andrew Bartlett
b3c5fbec47
Remaining changes to implement the prefork process model
...
To use, run 'smbd -M prefork'
By default, only the smb service is preforked. 4 children are
created, and all listen for new connections. The Linux Kernel 'wake
one' behaviour should ensure that only one is given the oportunity to
accept. We need to look into the ideal number of worker children, as
well as load balancing behaviours.
To change, set:
prefork children : smb = 6
valid service names (smb in this example) match those in 'server services'.
Andrew Bartlett and David Disseldorp
(This used to be commit 35313c0aa3
)
2008-02-04 17:59:16 +11:00
Andrew Bartlett
3d5594e74d
Rework process_single.c to take advantage of cluster_id() now taking an additional argument.
...
Andrew Bartlett and David Disseldorp
(This used to be commit c961e7d74e
)
2008-02-04 17:53:01 +11:00
Andrew Bartlett
77f71c1b65
Rework cluster_id() to take an additional argument, as we need
...
<node>.<pid>.<fd> to be unique in a prefork process environment.
Andrew Bartlett and David Disseldorp
(This used to be commit 931994a7f1
)
2008-02-04 17:51:38 +11:00
Andrew Bartlett
23d681caf9
Rework service init functions to pass down service name. This is
...
needed to change prefork behaviour based on what service is being
started.
Andrew Bartlett and David Disseldorp
(This used to be commit 0d830580e3
)
2008-02-04 17:48:51 +11:00
Jelmer Vernooij
03023c4f7d
build: Demote a bunch of libraries to subsystems. This makes packaging easier and should also make it easier
...
to migrate to a new build system.
(This used to be commit 77b400764e
)
2008-01-21 03:54:42 +01:00
Jelmer Vernooij
df408d056e
r26672: Janitorial: Remove uses of global_loadparm.
...
(This used to be commit 18cd08623e
)
2008-01-05 13:06:03 -06:00
Jelmer Vernooij
c13ae70731
r26580: Include sentinel in build.h, in case the list is empty.
...
(This used to be commit f1997dabed
)
2007-12-24 01:51:07 -06:00
Jelmer Vernooij
be33f4c611
r26576: Allow the static module loading code to be used for the Python modules.
...
Simplify the way module initialization functions are handled.
(This used to be commit ba8be2dfc0
)
2007-12-24 01:51:06 -06:00
Jelmer Vernooij
84b4763947
r26441: Remove global_loadparm uses.
...
(This used to be commit 32007c6277
)
2007-12-21 05:50:09 +01:00
Jelmer Vernooij
d891c0c74a
r26429: Avoid use of global_smb_iconv_convenience.
...
(This used to be commit d37136b7ab
)
2007-12-21 05:49:56 +01:00
Jelmer Vernooij
4b0199a549
r26409: Pass smb ports along.
...
(This used to be commit 2833f320de
)
2007-12-21 05:49:42 +01:00
Jelmer Vernooij
f9948d18d7
r26400: Don't try to do character conversion before smb.conf has been parsed.
...
(This used to be commit 9faba28749
)
2007-12-21 05:49:30 +01:00
Jelmer Vernooij
b65dba2245
r26355: Eliminate global_loadparm in more places.
...
(This used to be commit 5d589a0d94
)
2007-12-21 05:49:01 +01:00
Jelmer Vernooij
5c4516fcf7
r26322: Fix include
...
(This used to be commit 9744316937
)
2007-12-21 05:48:34 +01:00
Jelmer Vernooij
2f5ca872a8
r26313: Fix more uses of static loadparm.
...
(This used to be commit 6fd0d9d3b7
)
2007-12-21 05:48:25 +01:00
Jelmer Vernooij
6901b3c64a
r26278: Tallocify convenience table for iconv handles.
...
(This used to be commit ad64b3baa4
)
2007-12-21 05:48:04 +01:00
Jelmer Vernooij
fc2f06d31b
r26274: Some syntax fixes, remove more global_loadparm instances.
...
(This used to be commit 3809113d86
)
2007-12-21 05:47:58 +01:00
Jelmer Vernooij
509e82e402
r26272: Remove global_loadparm in some more places.
...
(This used to be commit 1ab76ecc53
)
2007-12-21 05:47:55 +01:00
Jelmer Vernooij
0184e5ef2d
r26269: Fix a couple more references to global_loadparm.
...
(This used to be commit 1cb849dfba
)
2007-12-21 05:47:49 +01:00
Jelmer Vernooij
ecea5ce245
r26260: Store loadparm context in gensec context.
...
(This used to be commit b9e3a4862e
)
2007-12-21 05:47:34 +01:00