summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* LICENSE: change license to MITHEADmasterBrandon Philips2012-09-0323-776/+396
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the spirit of 70df7aaa lets change the license again, this time to MIT! Context: On 23:15 Tue 10 Apr 2012, Lennart Poettering wrote: > On Mon, 09.04.12 14:51, Brandon Philips (brandon@ifup.org) wrote: > > I am working on a daemon and it would be great to use libdaemon. > > However, the project is Apache licensed and I have no idea how they > > interact. Is it at all possible to dual license LGPL/BSD or LGPL/Apache? > > > > https://github.com/racker/virgo > > heya. I am not such a big fan of the BSD licenses myself, but I guess in > this case it is OK. Yea :-/ > The only major other contributor seems to be Diego Pettenò who should be > OK with such a change. I'll ask him. Great, thank you. > Would you be OK with MIT as well? Yes, the MIT license works too.
* update READMEv0.14Lennart Poettering2009-10-181-2/+5
|
* hide more filesLennart Poettering2009-10-181-1/+2
|
* dlog: lower default verbosity to INFOLennart Poettering2009-10-181-1/+1
|
* dlog: introduce DAEMON_SET_VERBOSITY_AVAILABLELennart Poettering2009-10-181-2/+7
|
* dlog: reformat daemon_set_verbosity()Lennart Poettering2009-10-181-10/+7
|
* doxygen updatesLennart Poettering2009-10-184-18/+58
|
* testd: daemon_retval_init() can failLennart Poettering2009-10-181-1/+4
|
* testd: use SIGTERM instead of SIGINT for shutting down daemonLennart Poettering2009-10-181-3/+3
|
* dfork: set errno properly in some error conditionsLennart Poettering2009-10-181-1/+3
|
* dfork: clean up forking logicAndorz Nilsson2009-10-181-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 itselfLennart Poettering2009-10-171-1/+1
|
* dfork: daemon_retval_done() might close socket already closed in ↵Stefan2009-10-171-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_MAXLennart Poettering2009-10-171-7/+6
|
* libdaemon 0.13 compiler warning issueStefan Seyfried2009-10-171-1/+2
| | | | | see https://bugzilla.novell.com/show_bug.cgi?id=449728 The patch I packaged up for this is attached.
* build-sys: various build system updatesLennart Poettering2009-10-171-3/+10
|
* Merge remote branch 'flameeyes/noundefined'Lennart Poettering2009-10-173-6/+57
|\
| * If the linker suppors it, ensure that the library has no undefinedDiego E. 'Flameeyes' Pettenò2008-11-192-1/+3
| | | | | | | | | | | | | | references. This is important to make sure that no bugs are introduced that breaks when using --as-needed.
| * Update the attributes.m4 macro file from xine-lib/lscube.Diego E. 'Flameeyes' Pettenò2008-11-192-5/+54
| | | | | | | | | | Also use the new CC_CHECK_CFLAGS_APPEND macro instead of doing the for loop manually.
* | dnonblock: use O_NONBLOCK instead of O_NDELAY to follow current POSIX namingLennart Poettering2009-04-201-2/+2
| |
* | dnonblock: make daemon_nonblock() actually workLennart Poettering2009-04-201-1/+1
| | | | | | | | Issue pointed out by Charles Lindsay.
* | Fix bootstrap.sh to find the correct macro files.Diego Elio 'Flameeyes' Pettenò2008-12-041-1/+1
|/
* add missing inclusion of sys/time.hLennart Poettering2008-10-261-0/+1
|
* Merge commit 'flameeyes/verbosity'Lennart Poettering2008-10-213-2/+34
|\
| * Bumping version (and version info for the library).Diego 'Flameeyes' Pettenò2008-10-021-2/+2
| | | | | | | | | | This will allow to explicitly check for support of the new extensions (like verbosity).
| * Add support for setting verbosity level for stdout/stderr output.Diego 'Flameeyes' Pettenò2008-10-012-0/+32
| |
| * Conditionally declare variables if their use is conditional.Diego 'Flameeyes' Pettenò2008-10-011-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-011-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).
* | Merge commit 'flameeyes/opensolaris'Lennart Poettering2008-10-211-2/+12
|\ \ | |/ |/|
| * Conditionally declare variables if their use is conditional.Diego 'Flameeyes' Pettenò2008-10-011-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-011-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).
* | Create an -uninstalled variant of the pkg-config file.Diego 'Flameeyes' Pettenò2008-10-014-2/+10
|/ | | | | With this variant, it's possible to build against a live tree of libdaemon to test in-development features.
* Split out the lynx documentation generation autoconf code to an m4 macro.Diego 'Flameeyes' Pettenò2008-08-072-18/+25
| | | | | As many 0pointer projects use the same code, move it out on its own macro, and use that. The macro can then be shared across projects.
* Replace the CFLAGS-checking code with a common macro from xine-lib.Diego 'Flameeyes' Pettenò2008-08-072-23/+263
| | | | | | | | | | | | | | Instead of writing custom code to check for cflags checking, import a copy of attributes.m4 from xine-lib's repository and use the CC_CHECK_CFLAGS macro. The advantage lies not only in being able to reduce the custom code in configure.ac, but also in the fact that the CC_CHECK_CFLAGS macro caches the results, making ./configure -C quite faster on second run. Check for the CFLAGS for any compiler and not just GCC, if the compiler does support the flag it is better to u se it anyway, otherwise it will be skipped.
* Don't check for the C++ compiler, as there are no C++ source files.Diego 'Flameeyes' Pettenò2008-08-071-1/+0
| | | | | | | Older versions of libtool (pre-2.2) made this change unimportant as C++ and Fortran compilers were always checked for. Newer libtool versions solve this problem, so it makes configure faster not to check for it.
* Use AC_PROG_CC_C99 to discover C99-compliant compiler.Diego 'Flameeyes' Pettenò2008-08-071-3/+2
| | | | | | | | | Instead of just checking if the compiler supports -std=gnu99 option, make use of the autoconf macro for discovering C99. This way other non-GCC compiler could be used in C99 mode too. If the compiler does not support gnu99 it falls back to c99, giving more chances that it would work than leaving it to default.
* Create the m4 directory to host M4 macro files.Diego 'Flameeyes' Pettenò2008-08-073-0/+8
| | | | | Make it known to autoconf and aclocal, add ignore file for libtool 2.2 macro files.
* Check for assert.h header and allow to disable assertions.Diego 'Flameeyes' Pettenò2008-08-071-0/+1
| | | | | | | In recent versions of autoconf, the AC_HEADER_ASSERT check not only makes sure that the assert.h header is found but it also allows the user to decide whether to enable or disable assertions at ./configure (rather than having to pass -DNDEBUG manually).
* Don't symlink README in srcdir or it will fail on out-of-build trees.Diego 'Flameeyes' Pettenò2008-08-071-4/+3
|
* Install README files in doc/html directories.Diego 'Flameeyes' Pettenò2008-08-071-3/+3
| | | | | | | | | | Install and distribute README.html and style.css in the html directory. Install and distribute README in the doc directory. The htmldir and docdir entries are added by recent versionf of autoconf and are configurable, so that distributions don't need to handle installation of these manually.
* Execute autoupdate.Diego 'Flameeyes' Pettenò2008-08-071-2/+2
| | | | | Replaces AC_GNU_SOURCE with AC_USE_SYSTEM_EXTENSIONS and AC_HELP_STRING with AS_HELP_STRING (and quotes its parameters).
* Bump autoconf requirement to 2.62 (latest released version).Diego 'Flameeyes' Pettenò2008-08-071-1/+1
|
* check in the right fd_set after coming back from select()Lennart Poettering2008-08-061-1/+1
|
* make building of examples optionalLennart Poettering2008-07-302-1/+10
|
* Revert "bump soname/version" which was innappropriately named and a bad idea ↵v0.13Lennart Poettering2008-07-291-1/+0
| | | | | | anyway This reverts commit b05a9ea7518befdae73772becaf9bc4b11711f80.
* Merge branch 'master' of ssh://rootserver/home/lennart/git/public/libdaemonLennart Poettering2008-07-291-0/+1
|\
| * bump soname/versionLennart Poettering2008-07-291-0/+1
| |
* | hide more files from gitLennart Poettering2008-07-292-0/+2
| |
* | fix linkLennart Poettering2008-07-291-1/+1
| |
* | update docsLennart Poettering2008-07-291-6/+8
| |