]> mj.ucw.cz Git - libucw.git/log
libucw.git
14 years agohashtable: Implemented new HASH_TABLE_VARS parameter.
Pavel Charvat [Sun, 7 Nov 2010 10:42:25 +0000 (11:42 +0100)]
hashtable: Implemented new HASH_TABLE_VARS parameter.

14 years agohashtable: Only fixed whitespace.
Pavel Charvat [Sun, 7 Nov 2010 10:36:36 +0000 (11:36 +0100)]
hashtable: Only fixed whitespace.

14 years agoThreads: The master mutex was not initialized in some cases
Martin Mares [Mon, 1 Nov 2010 19:18:27 +0000 (20:18 +0100)]
Threads: The master mutex was not initialized in some cases

14 years agoUCW::Configure::C: de-reference CPU_ARCH in COPT
Martin Mares [Thu, 7 Oct 2010 14:58:43 +0000 (16:58 +0200)]
UCW::Configure::C: de-reference CPU_ARCH in COPT

Originally, when CONFIG_EXACT_CPU was enabled, COPT contained `-march=$(CPU_ARCH)',
which worked when it was used in a Makefile, but not when doing a test
compile in the configure script.

I changed it to dereference the variable immediately.

14 years agoAdded a clean way for building of static PIC libraries
Martin Mares [Fri, 1 Oct 2010 18:57:25 +0000 (20:57 +0200)]
Added a clean way for building of static PIC libraries

Defining CONFIG_STATIC_PIC adds a dependency on *-pic.a
to every pkg-config file. In addition to that, the .pc
files now contain a "picsuffix" variable which can be
overridden by the user to enable the PIC mode.

14 years agoUCW::CGI: Fixed a regression in processing of multiple controls with the same name
Martin Mares [Tue, 31 Aug 2010 14:39:18 +0000 (16:39 +0200)]
UCW::CGI: Fixed a regression in processing of multiple controls with the same name

14 years agoUCW::CGI: No deescaping should be applied to multipart/www-data
Martin Mares [Wed, 18 Aug 2010 16:09:10 +0000 (18:09 +0200)]
UCW::CGI: No deescaping should be applied to multipart/www-data

14 years agoUCW::CGI: Bug fixes
Martin Mares [Mon, 19 Jul 2010 18:48:27 +0000 (20:48 +0200)]
UCW::CGI: Bug fixes

14 years agoUCW::CGI: html_escape() should escape single quotes, too
Martin Mares [Mon, 19 Jul 2010 18:48:11 +0000 (20:48 +0200)]
UCW::CGI: html_escape() should escape single quotes, too

14 years agoUCW::CGI: Support multiple argument tables
Martin Mares [Mon, 19 Jul 2010 15:27:12 +0000 (17:27 +0200)]
UCW::CGI: Support multiple argument tables

(1) parse_args() can be called multiple times with different
    argument tables, so that different parts of a single script
    can fetch their own arguments without cluttering the main
    argument table. The only catch is that uploaded files must
    be defined in the main argument table (i.e., the first one used).

(2) self_ref() and self_form() accepts optional argument tables
    which are merged to the main one.

14 years agoGrowing arrays: GARY_RESIZE and GARY_INIT_OR_RESIZE
Martin Mares [Fri, 30 Jul 2010 17:05:13 +0000 (19:05 +0200)]
Growing arrays: GARY_RESIZE and GARY_INIT_OR_RESIZE

GARY_SET_SIZE renamed to GARY_RESIZE, added GARY_INIT_OR_RESIZE.

14 years agoGrowing arrays: GARY_FREE(NULL) does nothing
Martin Mares [Fri, 30 Jul 2010 17:00:49 +0000 (19:00 +0200)]
Growing arrays: GARY_FREE(NULL) does nothing

14 years ago.gitignore: ignore Vim swap files, too
Martin Mares [Thu, 22 Jul 2010 14:57:11 +0000 (16:57 +0200)]
.gitignore: ignore Vim swap files, too

14 years agoImplemented a new growing array module
Martin Mares [Thu, 22 Jul 2010 14:56:12 +0000 (16:56 +0200)]
Implemented a new growing array module

Instead of gbuf/bbuf, it supports arbitrary types without having
to instantiate the data structure for every type.

Will add some documentation later.

14 years agoMinor fixes to strtonum.
Daniel Fiala [Mon, 2 Aug 2010 17:54:13 +0000 (19:54 +0200)]
Minor fixes to strtonum.
  * Removed nested function from strtonum-gen.h .
  * Error messages are not saved in separate static variables.
  * Octal numbers can be detected by prefix '0[0-7]...' (this feature is enabled by STN_OCT0).
  * One-command blocks are not enclosed by { ... } .
  * STN_ZCHAR renamed to STN_WHOLE.

14 years agoConfigure: Improved TestCompile, so that the temporary files can be kept
Martin Mares [Thu, 22 Jul 2010 13:39:44 +0000 (15:39 +0200)]
Configure: Improved TestCompile, so that the temporary files can be kept

14 years agoUCW: Adapted to use ucw_thread_id()
Martin Mares [Thu, 22 Jul 2010 13:34:46 +0000 (15:34 +0200)]
UCW: Adapted to use ucw_thread_id()

14 years agoUse thread-local storage of GCC 4.x
Martin Mares [Thu, 22 Jul 2010 13:32:49 +0000 (15:32 +0200)]
Use thread-local storage of GCC 4.x

ucw/threads.c can now work in three different modes:

   o  non-threaded
   o  threaded with context in pthread per-thread storage
   o  threaded with context stored as __thread

I had to make a backward-incompatible change: ucwlib_context->thread_id
is no longer accessible directly (because I do not know of any way how
to initialize it in the __thread mode) and a wrapper function should
be used.

14 years agoConfigure: Implemented running of test programs
Martin Mares [Thu, 22 Jul 2010 13:31:12 +0000 (15:31 +0200)]
Configure: Implemented running of test programs

14 years agoConfigure: Better reporting of test results
Martin Mares [Thu, 22 Jul 2010 13:30:07 +0000 (15:30 +0200)]
Configure: Better reporting of test results

Test() now reports preset values differently from auto-detected ones.

Added TestBool() which translates 1->yes and 0->no in log messages.

14 years agostrtonum: GCC roared that a prototype is missing, hmm...
Martin Mares [Tue, 13 Jul 2010 15:37:20 +0000 (17:37 +0200)]
strtonum: GCC roared that a prototype is missing, hmm...

14 years agoLogger: Shut up re-initialization warning of GCC 4.3
Martin Mares [Tue, 13 Jul 2010 15:37:10 +0000 (17:37 +0200)]
Logger: Shut up re-initialization warning of GCC 4.3

14 years agoBuild: libshxml compiles
Martin Mares [Tue, 13 Jul 2010 12:48:27 +0000 (14:48 +0200)]
Build: libshxml compiles

14 years agoRemoved doc/conf*, they have been superseded by ucw/doc/conf*.
Martin Mares [Tue, 13 Jul 2010 12:43:40 +0000 (14:43 +0200)]
Removed doc/conf*, they have been superseded by ucw/doc/conf*.

14 years agoA partial build system
Martin Mares [Tue, 13 Jul 2010 12:43:06 +0000 (14:43 +0200)]
A partial build system

Compiles everything except for libshxml.

14 years agoGet rid of SHERLOCK_VERSION and use UCW_VERSION everywhere
Martin Mares [Tue, 13 Jul 2010 12:35:28 +0000 (14:35 +0200)]
Get rid of SHERLOCK_VERSION and use UCW_VERSION everywhere

14 years agoCleanup: Moved config files to etc/
Martin Mares [Tue, 13 Jul 2010 12:34:56 +0000 (14:34 +0200)]
Cleanup: Moved config files to etc/

14 years agoAdded .gitignore
Martin Mares [Tue, 13 Jul 2010 12:02:35 +0000 (14:02 +0200)]
Added .gitignore

14 years agoCharset: imported cs2cs from Sherlock, does not compile yet
Martin Mares [Tue, 13 Jul 2010 12:02:05 +0000 (14:02 +0200)]
Charset: imported cs2cs from Sherlock, does not compile yet

14 years agoImported doc/config{,ure} from Sherlock
Martin Mares [Tue, 13 Jul 2010 12:01:13 +0000 (14:01 +0200)]
Imported doc/config{,ure} from Sherlock

14 years agoCleanup: Moved libshxml to shxml/
Martin Mares [Tue, 13 Jul 2010 11:45:30 +0000 (13:45 +0200)]
Cleanup: Moved libshxml to shxml/

14 years agoCleanup: Moved sorter debugging tools to ucw/sorter/debug/
Martin Mares [Tue, 13 Jul 2010 11:44:35 +0000 (13:44 +0200)]
Cleanup: Moved sorter debugging tools to ucw/sorter/debug/

14 years agoCleanup: Fixed comment
Martin Mares [Tue, 13 Jul 2010 11:43:32 +0000 (13:43 +0200)]
Cleanup: Fixed comment

14 years agoCleanup: Fixed comments in config files
Martin Mares [Tue, 13 Jul 2010 11:42:53 +0000 (13:42 +0200)]
Cleanup: Fixed comments in config files

14 years agoCleanup: Removed build/installer
Martin Mares [Tue, 13 Jul 2010 11:39:41 +0000 (13:39 +0200)]
Cleanup: Removed build/installer

It was specific for Sherlock.

14 years agoUCW: Cosmetic cleanups of strtonum holmes-import
Martin Mares [Fri, 18 Jun 2010 20:48:14 +0000 (22:48 +0200)]
UCW: Cosmetic cleanups of strtonum

14 years agolibucw: Fixed infinite recursion in str_to_int().
Pavel Charvat [Fri, 18 Jun 2010 06:17:10 +0000 (08:17 +0200)]
libucw: Fixed infinite recursion in str_to_int().

14 years agomainloop: Small fixes in hooks.
Pavel Charvat [Wed, 16 Jun 2010 20:18:21 +0000 (22:18 +0200)]
mainloop: Small fixes in hooks.

14 years agomainloop: Optimized heaps in timers.
Pavel Charvat [Wed, 16 Jun 2010 19:16:01 +0000 (21:16 +0200)]
mainloop: Optimized heaps in timers.

14 years agomainloop: Rewritten timers from clist to heap.
Pavel Charvat [Wed, 16 Jun 2010 19:02:05 +0000 (21:02 +0200)]
mainloop: Rewritten timers from clist to heap.

14 years agomainloop: Improved deletion and insertion of hooks.
Pavel Charvat [Wed, 16 Jun 2010 18:10:25 +0000 (20:10 +0200)]
mainloop: Improved deletion and insertion of hooks.

It is now guaranted that:
* You can safely remove hook anytime, even from other hook.
* Newly inserted hook will be called at least once before next sleep.

14 years agomainloop: Fixed possible infinite timeouts.
Pavel Charvat [Wed, 16 Jun 2010 18:03:35 +0000 (20:03 +0200)]
mainloop: Fixed possible infinite timeouts.

14 years agoFixed a typo in the list of includes. Has anybody compiled the full tree recently? ;)
Martin Mares [Wed, 2 Jun 2010 08:23:37 +0000 (10:23 +0200)]
Fixed a typo in the list of includes. Has anybody compiled the full tree recently? ;)

14 years agoTypo.
Daniel Fiala [Fri, 14 May 2010 15:29:20 +0000 (17:29 +0200)]
Typo.

14 years agostrtonum: Fixed minor errors.
Daniel Fiala [Fri, 14 May 2010 15:11:23 +0000 (17:11 +0200)]
strtonum: Fixed minor errors.
  * Removed declarations of undefined conversion functions.
  * Added inline conversion functions for signed integers.
  * Moved branche for checking whether number is terminated by 0 character.

14 years agoAdded functions for conversions from string to uns or uintmax_t .
Daniel Fiala [Tue, 11 May 2010 02:38:49 +0000 (04:38 +0200)]
Added functions for conversions from string to uns or uintmax_t .

14 years agolibucw: Implemented Loging.Stream.FileDesc.
Pavel Charvat [Thu, 18 Feb 2010 15:12:15 +0000 (16:12 +0100)]
libucw: Implemented Loging.Stream.FileDesc.

14 years agoUCW::CGI -- fixed a bug in parsing of boundaries
Martin Mares [Mon, 23 Nov 2009 19:40:49 +0000 (20:40 +0100)]
UCW::CGI -- fixed a bug in parsing of boundaries

Interpolating user-supplied strings inside regular expressions in unsafe, even
if /\Q...\E/ were used.

In this case, it fails when Webkit-based browsers send boundary strings
containing "+" characters.

15 years agoOprava URL v authors
Michal Vaner [Thu, 15 Oct 2009 08:52:51 +0000 (10:52 +0200)]
Oprava URL v authors

15 years agoFixed bugs in sorter docs.
Martin Mares [Wed, 16 Sep 2009 12:05:18 +0000 (14:05 +0200)]
Fixed bugs in sorter docs.

15 years agoImproved building of centrum-sherlock-* packages.
Pavel Charvat [Sat, 4 Jul 2009 14:27:00 +0000 (16:27 +0200)]
Improved building of centrum-sherlock-* packages.

* Added sherlock build system to centrum-sherlock-lib-dev.
* We now use custom INSTALL_*_DIR options to avoid replacing of paths everywhere.
* Resulting .tar.gz contains entire sherlock tree.

15 years agoAdded MAX_WORD_BYTES and MAX_WORD_CHARS to ucw/autoconf.h .
Daniel Fiala [Tue, 2 Jun 2009 11:26:05 +0000 (13:26 +0200)]
Added MAX_WORD_BYTES and MAX_WORD_CHARS to ucw/autoconf.h .

15 years agoMade ucw/unaligned.h compatible with the worst programming language :-)
Daniel Fiala [Mon, 1 Jun 2009 11:50:31 +0000 (13:50 +0200)]
Made ucw/unaligned.h compatible with the worst programming language :-)
ucw/log.h added between exported headers.

15 years agoIncreased the version number of the developement branch.
Pavel Charvat [Mon, 25 May 2009 09:33:12 +0000 (11:33 +0200)]
Increased the version number of the developement branch.

15 years agoDefined the position independent version of libcharset.
Pavel Charvat [Wed, 6 May 2009 17:29:06 +0000 (19:29 +0200)]
Defined the position independent version of libcharset.

15 years agoJust fixed a comment in libimages.
Pavel Charvat [Wed, 29 Apr 2009 15:38:55 +0000 (17:38 +0200)]
Just fixed a comment in libimages.

15 years agoDo not leave any colorspace conversions to libjpeg and make them manually.
Pavel Charvat [Wed, 29 Apr 2009 14:20:46 +0000 (16:20 +0200)]
Do not leave any colorspace conversions to libjpeg and make them manually.

15 years agoStore thumbnails in the YCbCr colorspace.
Pavel Charvat [Wed, 29 Apr 2009 14:14:01 +0000 (16:14 +0200)]
Store thumbnails in the YCbCr colorspace.

15 years agoO_CLOEXEC is not always available on Linux, too
Martin Mares [Mon, 13 Apr 2009 12:31:59 +0000 (14:31 +0200)]
O_CLOEXEC is not always available on Linux, too

15 years agomove strnlen() to ucw/string.c
Robert Spalek [Sat, 11 Apr 2009 21:26:50 +0000 (14:26 -0700)]
move strnlen() to ucw/string.c

15 years agoadd strnlen() which isn't available on Darwin
Robert Spalek [Sat, 11 Apr 2009 20:12:42 +0000 (13:12 -0700)]
add strnlen() which isn't available on Darwin

now all tests pass

15 years agomake mainloop.c work on Darwin, where O_CLOEXEC is not available
Robert Spalek [Sat, 11 Apr 2009 19:43:06 +0000 (12:43 -0700)]
make mainloop.c work on Darwin, where O_CLOEXEC is not available

I just if'ed out the new code.

15 years agoversion number changed to 4.0
Robert Spalek [Tue, 7 Apr 2009 02:38:55 +0000 (19:38 -0700)]
version number changed to 4.0

15 years agoMerge branch 'dev-lib'
Robert Spalek [Tue, 7 Apr 2009 02:32:59 +0000 (19:32 -0700)]
Merge branch 'dev-lib'

15 years agoLibucw: Fixed a bug in logging of 8-bit characters.
Martin Mares [Tue, 24 Mar 2009 22:07:54 +0000 (23:07 +0100)]
Libucw: Fixed a bug in logging of 8-bit characters.

15 years agoMake selfpipe read/write errors nonfatal
Michal Vaner [Mon, 9 Mar 2009 17:58:01 +0000 (18:58 +0100)]
Make selfpipe read/write errors nonfatal

die in signal handler is unsafe and the errors should not cause anything
really bad anyway.

15 years agoFix the selfpipe in mainloop
Michal Vaner [Sun, 8 Mar 2009 10:34:28 +0000 (11:34 +0100)]
Fix the selfpipe in mainloop

Removed dependency on pipe2 (may be unavailable too), various fixes.

15 years agoSolved mainloop race by selfpipe
Michal Vaner [Sat, 7 Mar 2009 21:40:10 +0000 (22:40 +0100)]
Solved mainloop race by selfpipe

A better solution would be using ppoll, but it is not generally
available. It will be detected and used if available soon.

15 years agoConfigure: Check for pkg-config before using it.
Martin Mares [Sat, 7 Mar 2009 13:24:34 +0000 (14:24 +0100)]
Configure: Check for pkg-config before using it.

15 years agoConfig: Fixed an error message text.
Martin Mares [Wed, 4 Mar 2009 11:33:49 +0000 (12:33 +0100)]
Config: Fixed an error message text.

The "include" command is no longer called "input".

15 years agoConfig: When cf_getopt() reports an error, do not commit config.
Martin Mares [Wed, 4 Mar 2009 11:32:32 +0000 (12:32 +0100)]
Config: When cf_getopt() reports an error, do not commit config.

In such situations, the configuration sections need not be initialized
properly.

15 years agoUpdated years in all README's.
Martin Mares [Sun, 22 Feb 2009 17:36:24 +0000 (18:36 +0100)]
Updated years in all README's.

15 years agoForgot to update SHERLOCK_VERSION.
Martin Mares [Sun, 22 Feb 2009 17:34:40 +0000 (18:34 +0100)]
Forgot to update SHERLOCK_VERSION.

15 years agoConfig: If cf_def_file is NULL, initialize the configuration.
Martin Mares [Sun, 22 Feb 2009 10:41:13 +0000 (11:41 +0100)]
Config: If cf_def_file is NULL, initialize the configuration.

Otherwise we end up uninitialized clists and other nasty stuff. (The problems
were rarely visible, but the recent changes to conf-input.c have caused some
extra commits, which crashed when no configuration was loaded.)

This is a departure from the behavior of LibUCW 3.12, but I think we should
guarantee that after cf_getopt(), the configuration is always in a consistent
state, meaning that it has been initialized and committed. This should not
depend on whether the default config file was loaded or not.

On the other hand, program which avoid cf_getopt() and call cf_load() are on
their own, there is no implicit commit for them yet. Maybe this should be
fixed, too.

15 years agoLogging: Following streams by stderr is now configurable.
Martin Mares [Sat, 21 Feb 2009 21:22:49 +0000 (22:22 +0100)]
Logging: Following streams by stderr is now configurable.

15 years agoLogging: A minor optimization of log_apply_limits().
Martin Mares [Sat, 21 Feb 2009 21:08:40 +0000 (22:08 +0100)]
Logging: A minor optimization of log_apply_limits().

Exit early if all types in the set are unknown.

15 years agoLogging: Let log_new_file() and log_new_fd() accept flags.
Martin Mares [Sat, 21 Feb 2009 21:05:29 +0000 (22:05 +0100)]
Logging: Let log_new_file() and log_new_fd() accept flags.

This way, we can request a stream cloned to stderr (originally, this was
available only via log_file()) or a FD-based stream which closes the FD
upon closing.

15 years agoLogging: Save the config file we use for testing of log-conf.c.
Martin Mares [Sat, 21 Feb 2009 20:20:00 +0000 (21:20 +0100)]
Logging: Save the config file we use for testing of log-conf.c.

15 years agoLogging: Document the configuration file.
Martin Mares [Sat, 21 Feb 2009 20:18:27 +0000 (21:18 +0100)]
Logging: Document the configuration file.

15 years agoLogging: Documented the rate limiters.
Martin Mares [Sat, 21 Feb 2009 19:54:03 +0000 (20:54 +0100)]
Logging: Documented the rate limiters.

15 years agoLogging: Write a note when some messages fall victim to limiting.
Martin Mares [Sat, 21 Feb 2009 19:31:30 +0000 (20:31 +0100)]
Logging: Write a note when some messages fall victim to limiting.

I was considering various shapes of this message. It is tempting to mention
the number of dropped messages, but that has to be done at the time of
an accepted message, which could be too late (the user might already have
wondered about the fate of the missing messages).

Second, I wanted to include a message type, but it would be misleading,
since a single limiter can apply to more types at once with a common bucket.

15 years agoLogging: Let TBF report the number of dropped messages.
Martin Mares [Sat, 21 Feb 2009 19:29:10 +0000 (20:29 +0100)]
Logging: Let TBF report the number of dropped messages.

15 years agoLogging: Add a couple of comments.
Martin Mares [Sat, 21 Feb 2009 19:14:42 +0000 (20:14 +0100)]
Logging: Add a couple of comments.

15 years agoLogging: Added configurable limits.
Martin Mares [Fri, 20 Feb 2009 17:09:26 +0000 (18:09 +0100)]
Logging: Added configurable limits.

Not tested yet.

15 years agoLogging: Introduce LS_NUM_TYPES and use it.
Martin Mares [Fri, 20 Feb 2009 17:09:12 +0000 (18:09 +0100)]
Logging: Introduce LS_NUM_TYPES and use it.

15 years agoLogging: Let log_msg contain the current time as a timeval, too.
Martin Mares [Fri, 20 Feb 2009 17:08:46 +0000 (18:08 +0100)]
Logging: Let log_msg contain the current time as a timeval, too.

15 years agoLogging: Implemented rate limiting based on the Token Bucket Filter.
Martin Mares [Fri, 20 Feb 2009 16:41:47 +0000 (17:41 +0100)]
Logging: Implemented rate limiting based on the Token Bucket Filter.

So far, it is a simple FP implementation. Maybe I will switch to integers later.

15 years agoLogging: L_SIGHANDLER should be really safe.
Martin Mares [Fri, 20 Feb 2009 15:54:09 +0000 (16:54 +0100)]
Logging: L_SIGHANDLER should be really safe.

I have realized that many operations performed by the log stream code are
either unsafe to call from signal handlers, subject to races between the
main program and its signal handlers, or subject to deadlocks when the
ucwlib_lock is taken.

I have therefore changed the semantics of L_SIGHANDLER to provide only
the minimal logging service: All sighandler messages are now logged to
stderr (which usually follows the main log file) and they are limited
to 255 characters (so that no dynamic allocation is performed).

15 years agoLogging: Type-based filters and logging of type names are configurable.
Martin Mares [Thu, 19 Feb 2009 18:56:06 +0000 (19:56 +0100)]
Logging: Type-based filters and logging of type names are configurable.

15 years agoLogging: Fixed a bug in formatting of types.
Martin Mares [Thu, 19 Feb 2009 18:55:37 +0000 (19:55 +0100)]
Logging: Fixed a bug in formatting of types.

15 years agoLogging: Implemented message types.
Martin Mares [Thu, 19 Feb 2009 18:35:04 +0000 (19:35 +0100)]
Logging: Implemented message types.

15 years agoLogging: Fatality of logging errors is configurable.
Martin Mares [Thu, 19 Feb 2009 17:55:08 +0000 (18:55 +0100)]
Logging: Fatality of logging errors is configurable.

15 years agoLogging: The list of level names is consistent again.
Martin Mares [Thu, 19 Feb 2009 17:52:28 +0000 (18:52 +0100)]
Logging: The list of level names is consistent again.

I have moved the list to <ucw/lib.h>. It is needed only rarely, but at this
place we hopefully won't miss again it when changing the levels.

15 years agoLogging: Fixed formatting when we have neither log_title nor log_pid.
Martin Mares [Thu, 19 Feb 2009 17:51:38 +0000 (18:51 +0100)]
Logging: Fixed formatting when we have neither log_title nor log_pid.

15 years agoLogging: Report logging errors.
Martin Mares [Thu, 19 Feb 2009 17:48:23 +0000 (18:48 +0100)]
Logging: Report logging errors.

Introduce an analogue of the infamous "Error while printing error message" :-)

When logging to a stream fails, the error is reported to the default stream,
but there are two precautions against infinite loops and floods of error
messages. First, we never report an error when logging of an error fails.
Second, we report only the first failure of a stream.

It is also possible to request program termination when logging fails.

15 years agoLogging: Fixed a bug in log_close_all().
Martin Mares [Thu, 19 Feb 2009 17:03:14 +0000 (18:03 +0100)]
Logging: Fixed a bug in log_close_all().

Under some circumstances (involving loops in substream structure),
log_close_all() crashed, because a stream could have become freed
when removing its substreams.

I have changed log_close_all() to unlink all substreams first and
then proceed with deallocating memory.

The same problem can never occur in simple log_close_stream(),
because a stream that is a part of a loop never gets a use count of 0.

15 years agoLogging: Let log handlers return errno upon error.
Martin Mares [Thu, 19 Feb 2009 16:57:03 +0000 (17:57 +0100)]
Logging: Let log handlers return errno upon error.

15 years agoLogging: Adapted the `logger' utility to the new numbering of levels.
Martin Mares [Thu, 19 Feb 2009 16:27:18 +0000 (17:27 +0100)]
Logging: Adapted the `logger' utility to the new numbering of levels.

15 years agoLogging: Let the log level mask be configurable.
Martin Mares [Thu, 19 Feb 2009 16:22:44 +0000 (17:22 +0100)]
Logging: Let the log level mask be configurable.

15 years agoConfig parser: Document :reset.
Martin Mares [Thu, 19 Feb 2009 16:15:46 +0000 (17:15 +0100)]
Config parser: Document :reset.