Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | dlog: lower default verbosity to INFO | Lennart Poettering | 2009-10-18 | 1 | -1/+1 |
| | |||||
* | dlog: introduce DAEMON_SET_VERBOSITY_AVAILABLE | Lennart Poettering | 2009-10-18 | 1 | -2/+7 |
| | |||||
* | dlog: reformat daemon_set_verbosity() | Lennart Poettering | 2009-10-18 | 1 | -10/+7 |
| | |||||
* | doxygen updates | Lennart Poettering | 2009-10-18 | 4 | -18/+58 |
| | |||||
* | dfork: set errno properly in some error conditions | Lennart Poettering | 2009-10-18 | 1 | -1/+3 |
| | |||||
* | dfork: clean up forking logic | Andorz Nilsson | 2009-10-18 | 1 | -17/+21 |
| | | | | | | | | | | | | | Call setsid() once only to make sure we get a process that is not a session leader or process group leader, and hence cannot acquire a controlling terminal. It looks like setpgid() (or setpgrp()) is used only when setsid() is not available. It looks like the call to ioctl() is necessary only for 4.3BSD. (Patch modified by Lennart Poettering) | ||||
* | dfork: close all fds >=3, including 3 itself | Lennart Poettering | 2009-10-17 | 1 | -1/+1 |
| | |||||
* | dfork: daemon_retval_done() might close socket already closed in ↵ | Stefan | 2009-10-17 | 1 | -0/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | daemon_close_allv() No Avahi daemon is running. If I start it at command-line with etc/init.d/avahi-daemon start or simply with avahi-daemon -D then the avahi-daemon eats all CPU-time. Stracing the process shows, that it loops endlessly in gettimeofday({1231956423, 692711}, NULL) = 0 gettimeofday({1231956423, 692735}, NULL) = 0 poll([{fd=5, events=POLLIN}, {fd=15, events=POLLIN}, \ {fd=14, events=POLLIN}, {fd=13, events=POLLIN}, \ {fd=12, events=POLLIN}, {fd=11, events=POLLIN}, \ {fd=10, events=POLLIN}, {fd=8, events=POLLIN}], 8, 62150) = 1 \ ([{fd=5, revents=POLLNVAL}]) The fd=5 is a BADFD. I found out that the fd was closed by daemon_retval_send() from libdaemon. (But: I think avahi-daemon should handle the POLLERR nevertheless.) Looking in libdaemon I found, that the library had already closed the fd=5 in daemon_close_all(), and closed it "again" as _daemon_retval_pipe[0] in daemon_retval_send() -> daemon_retval_done(), but in the meantime, this is an fd from the application, not from the library. I think, after closing _daemon_retval_pipe[0] in daemon_close_allv() the fd must be marked as closed. I have attached a patch. For me it works fine. | ||||
* | dfork: honour _SC_OPEN_MAX | Lennart Poettering | 2009-10-17 | 1 | -7/+6 |
| | |||||
* | libdaemon 0.13 compiler warning issue | Stefan Seyfried | 2009-10-17 | 1 | -1/+2 |
| | | | | | see https://bugzilla.novell.com/show_bug.cgi?id=449728 The patch I packaged up for this is attached. | ||||
* | Merge remote branch 'flameeyes/noundefined' | Lennart Poettering | 2009-10-17 | 1 | -1/+1 |
|\ | |||||
| * | If the linker suppors it, ensure that the library has no undefined | Diego E. 'Flameeyes' Pettenò | 2008-11-19 | 1 | -1/+1 |
| | | | | | | | | | | | | | | references. This is important to make sure that no bugs are introduced that breaks when using --as-needed. | ||||
* | | dnonblock: use O_NONBLOCK instead of O_NDELAY to follow current POSIX naming | Lennart Poettering | 2009-04-20 | 1 | -2/+2 |
| | | |||||
* | | dnonblock: make daemon_nonblock() actually work | Lennart Poettering | 2009-04-20 | 1 | -1/+1 |
|/ | | | | Issue pointed out by Charles Lindsay. | ||||
* | add missing inclusion of sys/time.h | Lennart Poettering | 2008-10-26 | 1 | -0/+1 |
| | |||||
* | Add support for setting verbosity level for stdout/stderr output. | Diego 'Flameeyes' Pettenò | 2008-10-01 | 2 | -0/+32 |
| | |||||
* | Conditionally declare variables if their use is conditional. | Diego 'Flameeyes' Pettenò | 2008-10-01 | 1 | -1/+3 |
| | | | | | Reduces warnings about unused variables by not declaring them if they are under an #ifdef conditional. | ||||
* | Fix building on OpenSolaris (without _NSIG definition). | Diego 'Flameeyes' Pettenò | 2008-10-01 | 1 | -1/+9 |
| | | | | | | | On OpenSolaris, the _NSIG macro is not defined, but NSIG is; as it's not possible to use NSIG under glibc (it would miss the SIGRT* series), define a SIGNAL_UPPER_BOUND depending on the system (and error out if the system lacks both NSIG and _NSIG). | ||||
* | Revert "bump soname/version" which was innappropriately named and a bad idea ↵v0.13 | Lennart Poettering | 2008-07-29 | 1 | -1/+0 |
| | | | | | | anyway This reverts commit b05a9ea7518befdae73772becaf9bc4b11711f80. | ||||
* | bump soname/version | Lennart Poettering | 2008-07-29 | 1 | -0/+1 |
| | |||||
* | fix indenting | Lennart Poettering | 2008-07-28 | 1 | -1/+1 |
| | |||||
* | close fds/reset sigs for exec'ed processes | Lennart Poettering | 2008-07-28 | 1 | -0/+2 |
| | |||||
* | add a bit more error checking | Lennart Poettering | 2008-07-28 | 1 | -4/+14 |
| | |||||
* | save/restore errno where applicable | Lennart Poettering | 2008-07-28 | 1 | -2/+17 |
| | |||||
* | decrement number of possible args | Lennart Poettering | 2008-07-28 | 1 | -2/+1 |
| | |||||
* | shorten code a bit | Lennart Poettering | 2008-07-28 | 1 | -4/+1 |
| | |||||
* | make retval checking more portable | Lennart Poettering | 2008-07-28 | 1 | -1/+1 |
| | |||||
* | be a bit more explicative | Lennart Poettering | 2008-07-28 | 1 | -1/+1 |
| | |||||
* | save/restore errno where applicable | Lennart Poettering | 2008-07-28 | 1 | -1/+3 |
| | |||||
* | fix a few thinkos in handling of exception lists | Lennart Poettering | 2008-07-28 | 1 | -12/+28 |
| | |||||
* | create retval pipes once only | Lennart Poettering | 2008-07-28 | 1 | -2/+8 |
| | |||||
* | save and restore errno where necessary | Lennart Poettering | 2008-07-28 | 1 | -0/+7 |
| | |||||
* | add more error checking | Lennart Poettering | 2008-07-28 | 1 | -1/+9 |
| | |||||
* | reorder a few things, so that logging works properly very early already | Lennart Poettering | 2008-07-28 | 1 | -14/+15 |
| | |||||
* | add a bit more error checking | Lennart Poettering | 2008-07-28 | 1 | -3/+10 |
| | |||||
* | fix indentation | Lennart Poettering | 2008-07-28 | 1 | -1/+1 |
| | |||||
* | save and restore errno in destructor | Lennart Poettering | 2008-07-28 | 1 | -0/+4 |
| | |||||
* | make sure we don't keep a round a va_list that is started but not stopped | Lennart Poettering | 2008-07-28 | 1 | -5/+3 |
| | |||||
* | destruct signal fds on failure | Lennart Poettering | 2008-07-28 | 1 | -1/+3 |
| | |||||
* | don't call fcntl unless we have to | Lennart Poettering | 2008-07-28 | 1 | -6/+7 |
| | |||||
* | update licenses/file headers | Lennart Poettering | 2008-07-28 | 14 | -298/+284 |
| | |||||
* | modernize build system | Lennart Poettering | 2008-07-28 | 1 | -1/+1 |
| | |||||
* | add API to block/reset signals | Lennart Poettering | 2008-04-25 | 2 | -61/+275 |
| | | | | git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@139 153bfa13-eec0-0310-be40-b0cb6a0e1b4b | ||||
* | fix doc wording | Lennart Poettering | 2008-04-25 | 1 | -4/+4 |
| | | | | git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@138 153bfa13-eec0-0310-be40-b0cb6a0e1b4b | ||||
* | Use asprintf() to set the path of the pidfile rather than using a 4KB static ↵ | Lennart Poettering | 2008-03-26 | 1 | -17/+23 |
| | | | | | | buffer. Modified patch from Flameeyes git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@136 153bfa13-eec0-0310-be40-b0cb6a0e1b4b | ||||
* | Respect what the user requested as localstate directory, rather than ↵ | Lennart Poettering | 2008-03-26 | 2 | -1/+3 |
| | | | | | | hardcoding /var. Patch from Flameeyes git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@135 153bfa13-eec0-0310-be40-b0cb6a0e1b4b | ||||
* | document daemon_logv() a bit better. Patch from tedp | Lennart Poettering | 2007-11-14 | 1 | -1/+4 |
| | | | | git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@133 153bfa13-eec0-0310-be40-b0cb6a0e1b4b | ||||
* | save and restore errno in sighandler | Lennart Poettering | 2007-10-30 | 1 | -0/+2 |
| | | | | git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@132 153bfa13-eec0-0310-be40-b0cb6a0e1b4b | ||||
* | if opening the pid file on O_RDWR doesn't work, fallback to O_RDONLY | Lennart Poettering | 2007-09-10 | 1 | -3/+13 |
| | | | | git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@131 153bfa13-eec0-0310-be40-b0cb6a0e1b4b | ||||
* | bump version and soname | Lennart Poettering | 2007-07-10 | 1 | -1/+1 |
| | | | | git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@128 153bfa13-eec0-0310-be40-b0cb6a0e1b4b |