Mercurial > noffle
comparison src/noffle.c @ 185:fed1334d766b noffle
[svn] * src/client.c: Change variable only used on constant to 'const'.
* src/filter.c: Add a couple of 'return's after ASSERT() to remove
compiler warnings about functions needing returns.
* NEWS,TODO,configure,configure.in,noffle.conf.example,docs/NOTES,
docs/noffle.conf.5,src/client.c,src/configfile.c,src/content.c,
src/control.c,src/database.c,src/fetch.c,src/fetchlist.c,src/filter.c,
src/group.c,src/lock.c,src/log.c,src/log.h,src/noffle.c,src/outgoing.c,
src/post.c,src/protocol.c,src/request.c,src/server.c,src/util.c:
Debug logging is always compiled and selected via noffle.conf. All debug
logs are classified as all, none, config, control, expire, fetch,
filter, newsbase, noffle, post, protocol, requests and server.
author | bears |
---|---|
date | Sun, 05 Aug 2001 09:24:22 +0100 |
parents | 09ca6eb5c7ff |
children | f1bacee93ca6 |
comparison
equal
deleted
inserted
replaced
184:9854ea5f295f | 185:fed1334d766b |
---|---|
8 not as server. If noffle runs as server, locking is performed while | 8 not as server. If noffle runs as server, locking is performed while |
9 executing NNTP commands, but temporarily released if no new command is | 9 executing NNTP commands, but temporarily released if no new command is |
10 received for some seconds (to allow multiple clients connect at the same | 10 received for some seconds (to allow multiple clients connect at the same |
11 time). | 11 time). |
12 | 12 |
13 $Id: noffle.c 279 2001-05-09 11:33:43Z bears $ | 13 $Id: noffle.c 300 2001-08-05 08:24:22Z bears $ |
14 */ | 14 */ |
15 | 15 |
16 #if HAVE_CONFIG_H | 16 #if HAVE_CONFIG_H |
17 #include <config.h> | 17 #include <config.h> |
18 #endif | 18 #endif |
573 if ( setrlimit( RLIMIT_CORE, &lim ) != 0 ) | 573 if ( setrlimit( RLIMIT_CORE, &lim ) != 0 ) |
574 { | 574 { |
575 Log_err( "Cannot set system core limit: %s", strerror( errno ) ); | 575 Log_err( "Cannot set system core limit: %s", strerror( errno ) ); |
576 return; | 576 return; |
577 } | 577 } |
578 Log_dbg( "Core limit set to %i", lim.rlim_max ); | 578 Log_dbg( LOG_DBG_NOFFLE, "Core limit set to %i", lim.rlim_max ); |
579 if ( chdir( Cfg_spoolDir() ) != 0 ) | 579 if ( chdir( Cfg_spoolDir() ) != 0 ) |
580 { | 580 { |
581 Log_err( "Cannot change to directory '%s'", Cfg_spoolDir() ); | 581 Log_err( "Cannot change to directory '%s'", Cfg_spoolDir() ); |
582 return; | 582 return; |
583 } | 583 } |
584 Log_dbg( "Changed to directory '%s'", Cfg_spoolDir() ); | 584 Log_dbg( LOG_DBG_NOFFLE, "Changed to directory '%s'", Cfg_spoolDir() ); |
585 } | 585 } |
586 | 586 |
587 static Bool | 587 static Bool |
588 initNoffle( void ) | 588 initNoffle( void ) |
589 { | 589 { |
590 Log_init( "noffle", noffle.lockAtStartup, LOG_NEWS ); | 590 Log_init( "noffle", noffle.lockAtStartup, LOG_NEWS ); |
591 Cfg_read(); | 591 Cfg_read(); |
592 Log_dbg( "NOFFLE version %s", Cfg_version() ); | 592 Log_dbg( LOG_DBG_NOFFLE, "NOFFLE version %s", Cfg_version() ); |
593 if ( noffle.lockAtStartup ) | 593 if ( noffle.lockAtStartup ) |
594 if ( ! Lock_openDatabases() ) | 594 if ( ! Lock_openDatabases() ) |
595 return FALSE; | 595 return FALSE; |
596 enableCorefiles(); | 596 enableCorefiles(); |
597 return TRUE; | 597 return TRUE; |