1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-13 23:21:08 +03:00
Commit Graph

32 Commits

Author SHA1 Message Date
Michal Schmidt
8f7f7a1bd3 log: never block on syslog in PID 1
Use a non-blocking syslog socket if logging from PID 1.
If sendmsg fails with EAGAIN, fall back to kmsg or console only for the
current message. Next message will try syslog again.
2011-12-20 00:23:51 +01:00
Michal Schmidt
4d8a7798e7 execute: avoid logging to closed fds
Several functions called from the "sd(EXEC)" process try to log messages
when all the file descriptors are already closed, including the logging
ones. The logging functions do not expect their fds to be closed and
they hit an assertion failure. The failure wants to be logged too,
so there is an infinite recursion, ended by a SIGSEGV.

When we close all fds, we must let log.c know about it.
2011-11-16 23:52:10 +01:00
Lennart Poettering
871e580949 selinux: log how much time it takes to load the SELinux policy and database 2011-07-25 21:22:57 +02:00
Lennart Poettering
20c03b7be2 don't make up buffer sizes, use standard LINE_MAX instead 2011-04-07 18:48:50 +02:00
Lennart Poettering
7d76f31288 log: fix shifting of facilities 2011-03-31 21:22:44 +02:00
Lennart Poettering
29db583471 log: don't strip facility when writing to kmsg 2011-03-31 19:49:04 +02:00
Harald Hoyer
35b8ca3aaf Spelling Corrections
Just some lame spelling corrections with no functionality.
2011-02-28 22:47:38 +01:00
Lennart Poettering
f41c094c9f log: fix build 2010-11-12 01:02:03 +01:00
Lennart Poettering
bb7df0da2d log: add automatic log target 2010-11-12 01:01:04 +01:00
Lennart Poettering
31a7034d38 log: downgrade syslog connection failure message since it might happen during normal operation 2010-11-10 22:38:43 +01:00
Lennart Poettering
dcdf86bbb0 log: reopen console so that we have logging on shutdown 2010-10-20 00:56:26 +02:00
Dave Reisner
c899f8c61a fix typo: s/seperat/separat/g 2010-10-05 21:50:56 +02:00
Lennart Poettering
c31e14954b log: support logging into SOCK_STREAM /dev/log sockets for comaptibility with syslog-ng 2010-09-08 03:07:44 +02:00
Lennart Poettering
44bcea6654 log: SCM_CREDENTIALS will be added by the kernel anyway, so there's no need to write them manually 2010-08-25 03:12:19 +02:00
Lennart Poettering
addab137cd syslog: add minimal syslog/kmsg bridge syslogd 2010-08-21 03:57:47 +02:00
Lennart Poettering
6309077509 log: pass SCM_CREDENTIALS when logging to syslog 2010-08-21 01:51:16 +02:00
Lennart Poettering
9499b235b9 log: print at to one target at max 2010-08-17 03:31:45 +02:00
Lennart Poettering
2396fb04f7 log: properly open log target in the various utilities 2010-08-16 22:39:02 +02:00
Lennart Poettering
d6c9574fb5 emacs: make sure nobody accidently adds tabs to our sources 2010-08-14 19:59:25 +02:00
Lennart Poettering
672c48cc06 pam: remove only sessions we ourselves created in the first place 2010-07-21 04:32:44 +02:00
Lennart Poettering
61cbdc4b30 systemctl: implement 'status' command 2010-07-05 02:40:39 +02:00
Lennart Poettering
541d6159c6 log: unify log env var prefix 2010-06-24 03:07:06 +02:00
Lennart Poettering
bb00e60409 don't use 'long long' unless we have a really good reason to 2010-06-19 04:35:52 +02:00
Lennart Poettering
bbe63281ea log: make color/location logging optional 2010-06-17 22:52:55 +02:00
Lennart Poettering
5b6319dcee service: optionally call into PAM when dropping priviliges 2010-06-16 21:54:17 +02:00
Lennart Poettering
3930341a76 log: don't open log targets too early 2010-06-11 12:31:50 +02:00
Lennart Poettering
9fae33d2c8 log: add null log target 2010-06-09 15:37:40 +02:00
Lennart Poettering
2149e37c79 manager: dump to usual debug channel on SIGUSR2, don't rely on stdin 2010-06-04 19:45:53 +02:00
Lennart Poettering
93a46b0bc5 macro: avoid name clash with _unused on ppc 2010-06-02 21:34:03 +02:00
Lennart Poettering
9726b29e98 log: handle multi-line log messages properly 2010-05-21 03:31:49 +02:00
Lennart Poettering
c8513d54d2 log: never close file descriptors < 3 2010-05-18 05:10:52 +02:00
Lennart Poettering
e99e38bbdc build-sys: move source files to subdirectory 2010-05-16 18:45:24 +02:00