bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
f6f23086d0259d50cde3bd5d4180d67d820d293d |
|
22-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-master: Add master_service_init_stats_client()
This allows initializing the stats client after master_service_init() if
necessary. |
b63e20ea9bc84f1aa90a551f217d01385e070b73 |
|
13-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-master: Add stats-client
Enable it if MASTER_SERVICE_FLAG_SEND_STATS is set |
1fd856f1177990003ec3829267b9e490c095d836 |
|
13-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-master: Add log_debug setting
lib-master understands only the global log_debug setting, which is passed
to it via environment from master process, or alternatively via doveconf
when executing standalone programs. Any per-user log_debug settings need
to be handled explicitly elsewhere. |
4afd5b65670e52e1d513e707c96d626ab1856e03 |
|
12-Dec-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: io_remove*(NULL) is a no-op |
d90a924480a061683786e459a2e1c1d0b6e4f1e4 |
|
12-Dec-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: timeout_remove(NULL) is a no-op |
754896551f0422cda5d78500b26700eec5343c5b |
|
31-Oct-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib-master: Load SSL module if wanted by service |
61eec37dd74af9434ff876bc739a4cbe4a0ba8b4 |
|
11-Oct-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-master: Allow a second log initialization after settings have been read.
This fixes logging with services that bypass the log service (lda or -L
parameter). |
1ef9fe877817de76eb38883ccf3833fae60e6865 |
|
05-Oct-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: stop including fd-set-nonblock.h & fd-close-on-exec.h directly |
719abeb2088987f213a33a7dd1fe78958beaef03 |
|
03-Oct-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-master: master_service_init_log() - Switch log handlers only on the first call
The secondary calls were only done by mail_storage_service_*() calls. They
want to initialize the logging once, but afterwards they only care about
changing the log prefix. Switch to this behavior now explicitly.
This fixes behavior if logging functions are changed between
mail_storage_service_*() calls, so they don't get reset. |
a943ed0f901e312445fd393249b91932797bba79 |
|
03-Oct-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: use i_close_fd{,_path}() instead of open-coding them |
0d1b8b6bec79746c5d89d57dd8c1688946bd9237 |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on timeout_remove(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- timeout_remove(&E);
- }
+ timeout_remove(&E); |
5f1d689131a75c39f064cbd4202373e7edf78f18 |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on io_remove{,_closed}(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- io_remove(&E);
- }
+ io_remove(&E);
@@
expression E;
@@
- if (E != NULL) {
- io_remove_closed(&E);
- }
+ io_remove_closed(&E); |
c6dfc77cb24ba1bb72437896080d3177b653e2af |
|
10-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-master: master_service_import_environment() - use a data stack frame
This way the caller doesn't have to do it. |
8a0a8c982a6ffc75a4b1c8717b6180a811655794 |
|
10-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
master: Move master_set_import_environment() to lib-master |
04a6e51325d52a8f6046389406b2f606159a61e3 |
|
24-May-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-master: Replace listeners with /dev/null in SIGQUIT instead of closing
This should be somewhat safer. |
4cbe2b4ee234317331eadd1768d9ce433adb60e1 |
|
09-May-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-master: When running under master, close listeners immediately on SIGQUIT |
d2c41d6587f973d3b215e035288a07619bc22c2a |
|
09-May-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-master: Remove listener's IO earlier if possible
This is needed for the next change to work properly. |
dd645357a6b851a3a9527d16e2bced731e46dcaa |
|
30-Jan-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: Add error_r to t_readlink and its callers |
dfa2201c6ac8ddb2d2798dee15662cfe774e644e |
|
30-Jan-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: Rename abspath to path-util |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
efe78d3ba24fc866af1c79b9223dc0809ba26cad |
|
24-Dec-2016 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
global: Replaced all instances of memset(p, 0, sizeof(*p)) with the new i_zero() macro.
Used the following script:
C_FILES=`git ls-files *.c`
H_FILES=`git ls-files *.h`
for F in "$C_FILES $H_FILES"; do
echo "$F"
perl -p -i -e 's/safe_memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero_safe(&$1)/g' $F
perl -p -i -e 's/safe_memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero_safe($1)/g' $F
perl -p -i -e 's/memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero(&$1)/g' $F
perl -p -i -e 's/memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero($1)/g' $F
done |
2ac5f36aa7c2e7a07ba8815d43a6d7483f62e74c |
|
16-Dec-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Change string position/length from unsigned int to size_t
Mainly to avoid truncating >4GB strings, which might potentially cause
some security holes. Normally there are other limits, which prevent such
excessive strings from being created in the first place.
I'm sure this didn't find everything. Maybe everything could be found with
compiler warnings. -Wconversion kind of does it, but it gives way too many
unnecessary warnings.
These were mainly found with:
grep " = strlen"
egrep "unsigned int.*(size|len)" |
253000d6d4805247116ee49922c9fd64add698e5 |
|
16-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-master: Revert redundant stdin/stdout/stderr fd checks
This is now done by lib_init() in a bit nicer way.
Reverts 08923d2c956ece3dc604d5842ba152c2bdb11fb9 |
08923d2c956ece3dc604d5842ba152c2bdb11fb9 |
|
14-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-master: Make sure stdin/stdout/stderr fds are open.
We'll just open /dev/null for them if they don't already exist. |
3c5ee51327f075dc13cdacf46135f7f0abbdaafe |
|
02-Sep-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Changed t_pop() API to make it a bit more like free() |
28bf8f762fcd21c57bf71822cf818447babce9a0 |
|
02-Sep-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-master: master_service_init_finish() now verifies that t_pop() wasn't leaked |
85b4143f07c504294dd4e5b168e9bfb293515c31 |
|
24-Aug-2016 |
Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
lib-master: don't leak config path
The config path can already be non-NULL thanks to the default config path
code or the CONFIG_PATH environmental variable. |
0679f8a70a8dda43b204ae35fc6a903818cc6584 |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-master: Add automatic data stack frame to init unless disabled. |
1904e2fc786dbc037039d284b371730777277fc5 |
|
18-May-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
Make libbsd optional
Also use setproctitle properly if libbsd is indeed used. |
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3 |
|
12-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: freshen copyright
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-5]/$1-2016/g;s/ (201[0-5]) Dovecot/ $1-2016 Dovecot/' |
03baa1c4c51f7b08fb285e82b528fcb00ac09ebf |
|
18-Nov-2015 |
Timo Sirainen <tss@iki.fi> |
lib-master: master_service_is_master_stopped() now returns FALSE if running standalone.
The only caller of this function was stats plugin to see if it should send
stats updates. So this fixes dovecot-lda, doveadm and other standalone tools
to send stats updates. |
814bf67459ad405a157af0b8940602024d7fadfe |
|
23-Sep-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
Remove now-unnecessary direct stdlib.h #includes. |
08c518f050eb243cd35ad5c10027cf1720edc503 |
|
29-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
lib-master: Compiler warning fix |
c93aca832ee532010ead91b85fa9f614132e1be2 |
|
29-Aug-2015 |
Stephan Bosch <stephan@rename-it.nl> |
Removed all invocations of atoi(). |
13f4d4d4a69d7dff2f71363d189d048abb04b6c6 |
|
24-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
lib-master: struct master_service_connection.name must never be NULL, use "" instead.
Fixes crash at least in auth process when there are inet_listeners without
names. |
8761992b5aa05862e7ec3a460cdc17af41a4a0f5 |
|
18-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
lib-master: Added support for HAProxy protocol.
Patch by Stephan Bosch - with some small changes. |
71056e0f5e1f68cb9ac002a7827eb98435c40d62 |
|
18-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
master: Changed passing of listener settings from master to process to be more flexible.
This is needed to allow adding new listener settings, such as `haproxy'.
Patch by Stephan Bosch - with some small changes. |
72f21884c0bb9bb26edad63623427ac2120901ea |
|
15-Jun-2015 |
Stephan Bosch <stephan@rename-it.nl> |
lib-master: Added local and real IP addresses and ports to struct master_service_connection. |
8ab32a83ca0ead65c5670f337ca3a4d7a0fd0ed1 |
|
18-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
lib-master: Moved connection accepting code to its own functions.
No functional changes. |
2f94ca6b0f70641fe31c8e1f93404ca0df8bb289 |
|
16-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
lib-master: If idle-die callback returns FALSE, notify master that we don't want to die.
This avoids the master thinking that we're ignoring its idle-kill signal and
logging an error. |
b17d7bbd284df42e6aeb74f8de0f73ee07cfccb6 |
|
16-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
lib-master: Code cleanup - split master_status_update() to two functions.
No functional changes. |
9b0f6b90ff8d1d6efd718b0d7cbe01b2454e9fd6 |
|
07-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
lib-master: Make sure we can't accidentally add duplicate getopt args. |
7f1b897201d80c83c96b0d663f2a14c517d48f14 |
|
13-May-2015 |
Timo Sirainen <tss@iki.fi> |
lib-master: Added master_service_get_socket_name() |
e52f55c08f6f1b4fbc5765bf6aa9c7daee0785c3 |
|
11-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
lib-master: Get log timestamp prefix from LOG_STDERR_TIMESTAMP environment. |
7cb128dc4cae2a03a742f63ba7afee23c78e3af0 |
|
05-Jan-2015 |
Phil Carmody <phil@dovecot.fi> |
global: freshen copyright
Robomatically:
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-4]/$1-2015/g;s/ (201[0-4]) Dovecot/ $1-2015 Dovecot/'
Happy 2015 everyone!
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
6efdbeab167483597bef087f70ea852d1256a082 |
|
11-Sep-2014 |
Timo Sirainen <tss@iki.fi> |
lib-master: Earlier config file path fix broke reusing existing config socket lookups. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
41789540204ce091b2c06629d9a31788082e5da8 |
|
03-Nov-2013 |
Timo Sirainen <tss@iki.fi> |
Call lib_atexit() callbacks before destroying the lib-master ioloop. |
e7a3ba6a438aa2963355805a13e89bea3cd47ba9 |
|
23-Oct-2013 |
Timo Sirainen <tss@iki.fi> |
lib-master: Fix to previous commit.
It broke doveadm-server's "does client need authentication?" check. |
9217d2426b4f8ece47441357f35d8bb34d97c4eb |
|
23-Oct-2013 |
Timo Sirainen <tss@iki.fi> |
lib-master: If service_count=1, close the listener before starting to handle the connection.
This way if the connection handling takes a long time and the service
doesn't notice that master dies, it can keep running without keeping the
listener fds open and preventing a restart. |
b7b9d4be2a1ff399026a5d6feeffd3a048f22be0 |
|
01-Aug-2013 |
Timo Sirainen <tss@iki.fi> |
lib-master: If MASTER_SERVICE_FLAG_KEEP_CONFIG_OPEN is set, open the config socket before dropping privileges. |
d6b3cfd855c0eebed68be50d3111de1b5a6afeb0 |
|
13-Jun-2013 |
Timo Sirainen <tss@iki.fi> |
Call master_service_init_finish() only after all of the initialization is done.
This way if the init crashes, the master process will throttle a buggy
service. |
57397188558fcd1a9e24dbbbd2952eac9c45c20d |
|
23-Apr-2013 |
Timo Sirainen <tss@iki.fi> |
lib-master: Added master_service_is_master_stopped() |
d4845c4245638fd6f02dc0cb92c3465fae763cbb |
|
04-Apr-2013 |
Timo Sirainen <tss@iki.fi> |
lib-master: Added master_service_get_process_min_avail() |
f54e601ca67d855b4ffc317aa5b76541101fb34e |
|
02-Apr-2013 |
Timo Sirainen <tss@iki.fi> |
lib-master: If fifo isn't accepted, don't double-destroy the connection. |
6303f32ad4af9cb08794561e6324df1c6c5fb637 |
|
14-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
lib-master: Added version_string_verify_full() |
8b5c520883aa37bb55646286d375fdbae294d710 |
|
25-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
login: Don't fail at startup by trying to load SSL plugin. |
5a6343181a5183b1ae1c39d40fc5a1deb3b840d9 |
|
25-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
lib-master: If ssl settings are used, initialize ssl context automatically. |
8ae72ad7d0c69e972cfa65d1e2ce4e3e9a8b765c |
|
24-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Replaced all -1U and (unsigned int)-1 with UINT_MAX.
It's somewhat clearer this way. Also clang's -fsanitize=integer gives
runtime errors about -1U (but not about explicit casts, so no need to change
(type)-1 casts). |
5a580c3a38ced62d4bcc95b8ac7c4f2935b5d294 |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Oops :) Update copyrights to 2013 without breaking all .c files. |
cca4ba2a504d70a9fe9fee37f8433997359de52c |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2013. |
4511a1f49e51c13355aed8f009b6412307d33636 |
|
16-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-master: Fixed -i <instance name> parameter handling.
It previously worked only if the default config socket wasn't usable. |
ca4526e3b5fbf5ea3dd477a2098522a44c9ac52c |
|
12-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
i_set_failure_prefix() now takes printf-like parameters.
This avoids using t_strdup_printf() with it, which was done very commonly. |
d9515a2eaa94c8287188c38fc28028727671e729 |
|
03-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-master: Fixed crashing with -i <instance> parameter handling. |
32b78da5dfbbf6a06b3dbdc9278c60b55714f9bc |
|
19-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
Read SSL settings only if service has SSL sockets or MASTER_SERVICE_FLAG_USE_SSL_SETTINGS. |
2e533fb1283b5f06a4063b519e47f1861c910386 |
|
22-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Made PKG_STATEDIR configurable with state_dir setting.
Based on patch by Chris Webb.
Normally this isn't needed, since the data in the state_dir can be shared
across multiple Dovecot instances, but in some specific use cases this may
be useful (e.g. users running their own Dovecots). |
27a44fcfd8d19bffe0f267f20a2b5d3fe7600fdd |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Removed CONTEXT_TYPE_SAFETY macro and reimplemented its functionality better.
gcc/clang now gives a compiler error in many places if callback isn't
exactly what was expected. It's also now much easier to add more of these
checks. |
f29756821a4c6b12b73e4a2a3e1c230117a43773 |
|
28-Jul-2012 |
Timo Sirainen <tss@iki.fi> |
Moved ssl_* settings from login-common to lib-master.
This allows creating other SSL servers more easily. |
a10ed8c47534b4c6b6bf2711ccfe577e720a47b4 |
|
23-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Marked functions parameters that are allowed to be NULL. Some APIs were also changed.
The non-obvious APIs where NULL parameter was changed to "" are
master_service_init() and auth_master_user_list_init().
These checks can currently be enabled only on a patched clang:
http://llvm.org/bugs/show_bug.cgi?id=6786 |
c37d80725cc6ecca448d23185f29750ff6eb3445 |
|
11-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
lib-master: -i parameter shouldn't imply -k parameter.
This was added accidentally when writing the code. |
0c96e2994ab4e25c9042ce21e9d39ca5054df3b6 |
|
22-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
lib-master: Minor memory leak fix on deinit. |
5ff22d69989a3ccc2d947164e47996f720d493d8 |
|
17-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
lib-master: If accept() fails, stop listening only temporarily, not permanently. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
104318260228780a5c6b3181b3401e8e504e2776 |
|
09-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
lib-master no longer uses 's' option, but it wasn't removed from getopt string. |
96d19229e5f322411eb84446e5477d8170cfa5af |
|
06-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
lib-master: Added -i parameter to read config by instance name rather than path. |
0161376aac025266d8654577c4b9ce371ffc87ea |
|
20-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
lib-master: Send service's idle_kill value to process in environment. |
f7423cbbd9dea363a5df18ebb96da055a977ae79 |
|
29-Dec-2011 |
Timo Sirainen <tss@iki.fi> |
Listener names are now in struct master_service_connection.name
This allows service to use the names to figure out what type the listener
is. |
c444eeaa2866152cf62652698aa11b125e8454bc |
|
18-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
lib-master: Set service/client limits already in master_service_init() |
93aa246b98205afab357471ecaaf51291a35bfa0 |
|
26-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
lib-master: Don't count FIFOs as clients anymore. We never see them disconnected.
This fixes a problem with shutdown_clients=no when a closed director process
could hang around forever waiting for the FIFO to close. |
21e6b4fd844fd074583b17f09e1f27b9835ee238 |
|
23-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
lib-master: Added master_service_client_connection_created() |
ccf50662cc02b5e703039a4ff7f91a4470e25b71 |
|
27-Jun-2011 |
Timo Sirainen <tss@iki.fi> |
lib-master: Added master_service_set_idle_die_callback() |
1ffb2afe6d7e8860a2231a4827078cf2ef9c22cd |
|
27-Jun-2011 |
Timo Sirainen <tss@iki.fi> |
master process now tells its children their service's process_limit. |
5512d420d826a2f9d4e7cb4e4919e1864fe688b0 |
|
06-Jun-2011 |
Timo Sirainen <tss@iki.fi> |
Use SA_RESTART flag for signals wherever possible.
Only SIGTERM (and SIGINT for standalone programs) shouldn't use it. |
2e37d45867d081db150ab78dad303b9077aea24f |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
183bea41fa640dc8117f3eb45ff935cd81377a84 |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
d5eb47a791ec56149fd711cd8e44efc8babeaae5 |
|
10-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
Added import_environment setting.
This also cleans up different places in code where TZ and other environments
are preserved. If it's not in the import_environment setting, it's not
preserved. |
cbcba924a745c938260fd39cb284175b75f8eaf2 |
|
15-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
master-child API change: Use a separate fd for tracking when master dies.
This works around a Linux performance problem where when one process writes
to status fd all the other processes of the same service type wake up. |
f6ba2de94f207839983e1b5b4bac930df465f572 |
|
17-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
Added support for systemd.
Based on patch by Christophe Fergeau |
e2bdca8201e4aa1cd31332ffbdd4c6eef9151d5e |
|
03-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Added MASTER_SERVICE_FLAG_UPDATE_PROCTITLE for showing number of connections in ps.
The title is still only updated if verbose_proctitle=yes, so this allows
binaries to easily just set the flag and lib-master handles the rest. |
75e531c014847af490f4bdb1310c87f9b2c8e478 |
|
25-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Use env_clean_except() for master_service_env_clean() |
3eeaad7297f63f643ebb3fb2a0f7a03b20ffc120 |
|
25-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Code cleanup for master_service_env_clean() |
56ba5a9b62e3ce527e898a8fe3b1a015ab30ed54 |
|
15-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Properly fixed accepting FIFO connections with BSDI. |
835ba470fb6a73b74e258e12678236106d0df09e |
|
19-Aug-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Fixed accepting FIFO connections with BSDI. |
71df09024cea5f2faa93da3bb9513ee96ba6bf22 |
|
23-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
doveadm: Added client/server architecture support for running mail commands.
This is done when doveadm_worker_count is non-zero. |
53abc2e7d13e9bff7260f1a8513dc8aae3c68854 |
|
05-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Removed -s parameter handler.
It existed only for kind-of-compatibility between Postfix master.
If someone actually wants such compatibility, a wrapper script would work
too.
--HG--
branch : HEAD |
f46363f428d8f2784146d36692b21936a48a7006 |
|
24-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: MASTER_SERVICE_FLAG_NO_IDLE_DIE wasn't actually working.
--HG--
branch : HEAD |
f37ecd72aad9b806aae83f71bacafdce32146945 |
|
21-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Added MASTER_SERVICE_FLAG_NO_IDLE_DIE.
--HG--
branch : HEAD |
deb06d37292d9112d74bdf80cfebb92ab5151679 |
|
16-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
Log paths now support "syslog" string.
--HG--
branch : HEAD |
a7bf18c0a462e4069675dec5038c474f8eb0a60d |
|
09-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Try to send master status more reliably.
--HG--
branch : HEAD |
f158d9a303bb15a6848ca276c9391c7ca52e452b |
|
02-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
Added version_string_verify() and removed code duplication with it.
--HG--
branch : HEAD |
db693bf6fcae96d834567f1782257517b7207655 |
|
27-May-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master API changed to avoid accidentally leaking client connections.
This change also fixes many such leaks.
--HG--
branch : HEAD |
7fe37c2b0e4cd2a39896ab16e47eb418a59e3934 |
|
08-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Fixed version mismatch error message.
--HG--
branch : HEAD |
baca06331782e2752734199486e51a26d7c93d75 |
|
07-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Changed post-login process's client counting to make sense again.
This should also fix problems where a new process isn't created because an
existing one is waiting for auth request reply.
--HG--
branch : HEAD |
9261dbf0675204898c6557591c7aa376e23a52b2 |
|
07-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
Started using str_to_*() functions instead of libc's ones.
--HG--
branch : HEAD |
8451c4b5afc1ff5366438b2766f75b592c33e1ec |
|
19-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: If binary isn't standalone, enable core dumping at startup.
Dropping privileges again should disable dumping, and later it's decided by
the binary itself it wants to be dumpable.
--HG--
branch : HEAD |
de70a6f77fc3b350eeee4e2a0d29dd07ddde431b |
|
18-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Don't assert-crash if client_limit < service_count.
--HG--
branch : HEAD |
2037c54ef0239bf7814badab08fc15f945f560fb |
|
04-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Avoid sending status updates to master too often.
--HG--
branch : HEAD |
40a8e6948d662339c0c5e2c7abfb84ae7c1803fd |
|
20-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Ignore SIGALRM and SIGPIPE as early as possible.
For example alarm() is used while reading configuration, which is done
before master_service_init_finish().
--HG--
branch : HEAD |
3b1bb5fd562be9d1a5f6894b82d2ba0d529cdcb3 |
|
20-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: Make sure IO listeners aren't added back while doing auth lookup.
--HG--
branch : HEAD |
b8efab7ea8876c0a33a73ee0d08eddada31320f8 |
|
27-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
lib-master: When executing standalone, try first to read config from global socket.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
7891c8e6debdcfec552cb1beea2a0230fe89957b |
|
14-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Close auth/config connections when we stop accepting more connections.
--HG--
branch : HEAD |
bd20ef9d5c639faf470912ab94e6e6627d3eaeba |
|
14-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master: Close listener fds when we stop accepting more connections.
--HG--
branch : HEAD |
b437874782ad048daa155e0ac863c2326c3f5e43 |
|
10-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master: Die on SIGINT only if we're running standalone or not handling clients.
--HG--
branch : HEAD |
13a0b45c0e4a776d88647346ba900cd5087ba3f0 |
|
09-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master: Don't try to close config fd early after all.
Login processes can do another config lookup when TLS hostname is given.
--HG--
branch : HEAD |
275385a2ecc58e41dc7df3ce3cd943caaa58c4d1 |
|
06-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master: Added master_service_stop_new_connections().
--HG--
branch : HEAD |
442232f2d1cfdf28f3a18aa00a5c19246d321036 |
|
27-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master: Fixes to handling master-login services.
--HG--
branch : HEAD |
3ba9a079592f46e94ce846e5aa80e4d479cd5e41 |
|
27-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Connection counting fixes.
Multiple real connections can come from "login connections". For now don't
even try to count login connections.
--HG--
branch : HEAD |
cd2ed64888b42b481cde6bb9548c8520516fa3e9 |
|
26-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Fixed Linux proctitle hack and enabled it by default now.
--HG--
branch : HEAD |
86791365b10f45982c88e70f2eb94fd6c3fea151 |
|
23-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Handle shutdown_clients globally for all services.
Delay shutting down processes until it's convenient for them, but if they're
not gone in 30 seconds forcibly stop. And if that doesn't help, master will
start killing them in 60 seconds.
--HG--
branch : HEAD |
e6b4168ba670d9e51ea7877661def039ae6b53c3 |
|
23-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master: Fixed getopt_string containing "+" GNU extension.
--HG--
branch : HEAD |
a3fe8c0c54d87822f4b4f8f0d10caac611861b2b |
|
21-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Moved process title init to lib-master. With Linux-hack enabled it now preserves command args.
--HG--
branch : HEAD |
578ef2538ccf42e2a48234c24a8b709397101d88 |
|
21-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Moved most of getopt() handling to lib-master.
--HG--
branch : HEAD |
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3 |
|
20-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Redesigned how login process passes connections to mail processes and changed related APIs.
Master process is no longer in the middle.
--HG--
branch : HEAD |
047c00cd3f7f403672f81569413669238df8c15a |
|
18-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master: Added _NO_CONFIG_SETTIGS and _NO_ENV_SETTINGS flags.
--HG--
branch : HEAD |
e364bf323ef28133cdf28e6b31bad47999cdbe49 |
|
16-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright comments.
--HG--
branch : HEAD |
6a6e3c2538a08cc4880a8db7e0a9a3392122ea04 |
|
10-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master: If config fd is kept open, close it after last connection has been created.
--HG--
branch : HEAD |
f5e1d3d6b34ec152aa1ff15c7bd3d3552e9227ea |
|
30-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
Added debug_log_path setting and i_debug() call.
Patch by Pascal Volk.
--HG--
branch : HEAD |
6fdfa4d4cf14d1d7764d7faa8258f112e39c8dbe |
|
11-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
*-login: Fixed dropping oldest connection when reaching all limits.
--HG--
branch : HEAD |
e0740628f6ca05f4bc79a9d8a90b650f4d38d4d0 |
|
09-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
Removed mail_log_max_lines_per_sec setting and related code.
It's pretty unnecessary and there's really no good way to implement it with
shared log pipes.
--HG--
branch : HEAD |
6ed1e82824590b514201d9db84ba96bdfc832dd5 |
|
05-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
Memory leak fixes.
--HG--
branch : HEAD |
1bea4b9c24fbe2b457950c09cf072292a6701cff |
|
04-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
anvil: Stop immediately when master asks, instead of waiting for clients to finish.
--HG--
branch : HEAD |
3f603ef00e35fca21605afa0ad8d76e94fee2b96 |
|
04-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master: Added master_service_set_die_with_master.
--HG--
branch : HEAD |
885e1b36da370a674c0fd3b85db53740d7dcbd9b |
|
04-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master: Make sure master_status.available_count is updated correctly.
--HG--
branch : HEAD |
89237470342ea6d4bbdf4cff9764037cfb3f6f45 |
|
04-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master: Fixes to handling FIFO connections. Also expose the FIFOness to caller.
--HG--
branch : HEAD |
788f275469ad9ed530e440d6690d0e4381a323b2 |
|
31-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
Added service_count setting to limit how many requests a service can handle before dying.
--HG--
branch : HEAD |
8d7eb4104707c60ca7e9d0228b37c5133476907b |
|
24-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master: If accept() fails and there are no clients, die instead of waiting forever.
--HG--
branch : HEAD |
c668292359474a4aa8c608b30a858337fa3fc813 |
|
04-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master: Non-listening processes should die when their std-client is destroyed.
--HG--
branch : HEAD |
e3540e734a79fd4f971652925079c2e26a4b5524 |
|
03-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
log, lib-master: More fifo handling fixes.
--HG--
branch : HEAD |
2ac0a22865272cb4311a1bd09eb69b475625b3eb |
|
03-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master: Fixed crashing on deinit when listening on fifos.
--HG--
branch : HEAD |
7f13786e6a18a846376e46d77349528d99935871 |
|
01-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master: When master dies, stop listening for new connections.
--HG--
branch : HEAD |
b2d562f9c7fd13f9a16e9b3bcee904630b80b1fe |
|
01-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master: Added master_service_get_name().
--HG--
branch : HEAD |
0c22bef8f5b35c645de8affd8746307fc53bd222 |
|
27-May-2009 |
Timo Sirainen <tss@iki.fi> |
DEBUG: lib-master no longer verifies fd leaks for programs running standalone.
--HG--
branch : HEAD |
4d4d6d4745682790c20d759ba93dbea46b812c5d |
|
22-May-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master has now a global master_service variable that all binaries use.
There should always be only one of them anyway.
--HG--
branch : HEAD |
c6335901c67a4c9365319190a111a2168f3b06f5 |
|
21-May-2009 |
Timo Sirainen <tss@iki.fi> |
master process shouldn't log to stderr. Changed the lib-master flag to _DONT_LOG_TO_STDERR.
--HG--
branch : HEAD |
0eab598e65e79c305761b68439c0be464363ade1 |
|
21-May-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master: Log to stderr by default when starting standalone.
--HG--
branch : HEAD |
17fe695b985e9d6e9dc39c05b24e6b3c3b7e1ba1 |
|
21-May-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master: Added -O parameter to use program default settings.
--HG--
branch : HEAD |
c99fe55d4535d839a6ad0735c4719e076a1adb2c |
|
15-May-2009 |
Timo Sirainen <tss@iki.fi> |
Memory leak fixes.
--HG--
branch : HEAD |
01230de017cd273de41143d88e9c18df1243ae8a |
|
15-May-2009 |
Timo Sirainen <tss@iki.fi> |
lib-master: Added support for keeping config connection open and reusing it for later requests.
--HG--
branch : HEAD |
9240d99920783c56405dda74a1f6c7ff1ebed8e6 |
|
13-May-2009 |
Timo Sirainen <tss@iki.fi> |
DEBUG: Preserve GDB environment when executing doveconf.
--HG--
branch : HEAD |
e4eb49e29197c6783ec93b868100394e189f4e0c |
|
13-May-2009 |
Timo Sirainen <tss@iki.fi> |
master services: When accepting connections, set them nonblocking.
--HG--
branch : HEAD |
d39a04db2f4d0599cb9b5f03a9aa10a3c234453c |
|
06-May-2009 |
Timo Sirainen <tss@iki.fi> |
Binaries now take -o key=value parameters to override settings.
--HG--
branch : HEAD |
6c2ce1d5bf17b21e804a079eb0f973b7ab83e0d8 |
|
06-May-2009 |
Timo Sirainen <tss@iki.fi> |
Implemented anvil service, which is used to implement mail_max_userip_connections.
--HG--
branch : HEAD |
7487ff578435377bbeefffdbfb78ca09ed1292df |
|
05-May-2009 |
Timo Sirainen <tss@iki.fi> |
inet_listeners now support ssl=yes. For now only login processes support it.
--HG--
branch : HEAD |
78fa3c578c14ee8a612f86cf73b6181c7f16463f |
|
05-May-2009 |
Timo Sirainen <tss@iki.fi> |
master: Fixes to handling logging.
Master now has a non-blocking write pipe to log process, so it no longer
blocks if log process is hanging. Also it's cleaner to send log commands via
a pipe specifically meant for them.
--HG--
branch : HEAD |
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76 |
|
24-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Initial commit for v2.0 master rewrite. Several features are still missing.
--HG--
branch : HEAD |
6d2b3ce2c6ef62334985ece4f0ab8b154e0e9560 |
|
10-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
doveadm: Log to stderr.
--HG--
branch : HEAD |
8d3278a82b964217d95c340ec6f82037cdc59d19 |
|
10-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Added lib-master and mail-storage-service code that makes it easier to build new Dovecot binaries.
Currently only the standalone applications (e.g. deliver) uses this.
--HG--
branch : HEAD |