summaryrefslogtreecommitdiff
path: root/src/rc/rc-logger.c
Commit message (Collapse)AuthorAge
* Do not unlink the temp. log during shutdownChristian Ruppert2012-01-28
| | | | | | | Also ignore errors in case of EROFS (Read-Only file systems) Reported-by: Maxim Kammerer X-Gentoo-Bug: 401115 X-Gentoo-Bug-URL: https://bugs.gentoo.org/401115
* Don't try to write the log during sysinitChristian Ruppert2011-12-29
| | | | | | | | During the sysinit and shutdown runlevels the logfile destination may be read-only. Skip the error messages in this case. X-Gentoo-Bug: 390645 X-Gentoo-Bug-URL: https://bugs.gentoo.org/390645
* Use RC_LEVEL_SHUTDOWNChristian Ruppert2011-12-29
|
* Remove useless rc_runlevel_get() callChristian Ruppert2011-12-29
| | | | The current runlevel will be passed to rc_logger_open() already.
* Don't print error when the logfile isn't writeable during shutdownChristian Ruppert2011-12-29
| | | | | | | | | | | The logfile or its basedir may be read-only during shutdown because the directory may be umounted or read-only remounted already. In this case we simply skip this error. This is related to a comment in bug 390645 but the initial bug is not fixed through this commit. X-Gentoo-Bug: 390645 X-Gentoo-Bug-URL: https://bugs.gentoo.org/390645
* Rename rc_logger_path to rc_log_pathChristian Ruppert2011-07-06
|
* Improve loggingChristian Ruppert2011-07-05
| | | | | | | | | Add "e" (O_CLOEXEC) to all fopen() calls. Remove system() call and replace it by fopen() and friends. This also fixes bug 368933 X-Gentoo-Bug: 368933 X-Gentoo-Bug-URL: https://bugs.gentoo.org/368933
* drop useless "All rights reserved" noticeMike Frysinger2011-06-29
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Clean up all trailing whitespace in src/.Robin H. Johnson2011-01-17
|
* Add (c) to CopyrightRoy Marples2009-05-01
|
* Avoid more gcc warning about not checking return values ...Roy Marples2009-04-30
|
* Improve style for KNFRoy Marples2009-04-23
|
* When logging, stdout isn't always a tty, which is the case for VPS Roy Marples2009-04-02
| | | | | systems, Thanks to mwrobel - fixes #106.
* Style.Roy Marples2008-11-28
|
* Switch from select to poll and improve the no prefixing of eend calls.Roy Marples2008-11-27
|
* Fix compile with pcc.Roy Marples2008-07-02
|
* Cast to unsigned char for ctype calls.Roy Marples2008-04-17
|
* Add license blurb to a few files and append my email to my name.Roy Marples2008-03-26
|
* Remove null terminated char ** lists in favour of RC_STRINGLIST, using TAILQ ↵Roy Marples2008-03-16
| | | | from queue(3). Refactor code style around the BSD KNF.
* Don't leak fd's.Roy Marples2008-02-28
|
* Welcome to 2008.Roy Marples2008-02-22
|
* Move logfile without a visible error, bug #28Roy Marples2008-02-20
|
* Quiet some more lint warnings.Roy Marples2008-01-22
|
* strip trailing newlinesMike Frysinger2008-01-14
|
* Re-indent to a standard tw of 8.Roy Marples2008-01-11
|
* Compile without warnings on NetBSDRoy Marples2008-01-09
|
* rc_getline keeps expanding it's malloced buffer until it has read a whole ↵Roy Marples2008-01-07
| | | | line or EOF. All functions which read into static buffers have been changed to use fhis function to avoid any potential overflows and to ensure we really do read a long long config line.
* Set include paths in Makefile instead of .c filesRoy Marples2008-01-06
|
* Add the missing changes from the recent Makefile updatesRoy Marples2008-01-05
|
* Add some .mk stubs to impersonate bsk .mk files to make writing our ↵Roy Marples2008-01-05
Makefiles easier. libeinfo, librc and rc now have their own seperate directories. More work is needed to tidy this up though.