| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
Reduces warnings about unused variables by not declaring them if they
are under an #ifdef conditional.
|
|
|
|
|
|
|
| |
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).
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@139 153bfa13-eec0-0310-be40-b0cb6a0e1b4b
|
|
|
|
|
|
| |
daemon_close_all(). Patch supplied by Sjoerd Simons
git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@127 153bfa13-eec0-0310-be40-b0cb6a0e1b4b
|
|
|
|
| |
git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@118 153bfa13-eec0-0310-be40-b0cb6a0e1b4b
|
|
|
|
| |
git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@117 153bfa13-eec0-0310-be40-b0cb6a0e1b4b
|
|
|
|
| |
git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@116 153bfa13-eec0-0310-be40-b0cb6a0e1b4b
|
|
|
|
|
|
|
|
| |
* Update README
* make use of autoconf macro AM_GNU_SOURCE
git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@101 153bfa13-eec0-0310-be40-b0cb6a0e1b4b
|
|
|
|
| |
git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@100 153bfa13-eec0-0310-be40-b0cb6a0e1b4b
|
|
|
|
| |
git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@99 153bfa13-eec0-0310-be40-b0cb6a0e1b4b
|
|
|
|
| |
git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@95 153bfa13-eec0-0310-be40-b0cb6a0e1b4b
|
|
|
|
| |
git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@94 153bfa13-eec0-0310-be40-b0cb6a0e1b4b
|
|
|
|
|
|
|
|
|
|
| |
* fix log message in dfork.c
* in dexec.c: call waitpid() in a loop and ignore EINTR
* add a "const" to daemon_log_ident
* minor doc update
git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@90 153bfa13-eec0-0310-be40-b0cb6a0e1b4b
|
|
|
|
| |
git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@86 153bfa13-eec0-0310-be40-b0cb6a0e1b4b
|
|
git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@71 153bfa13-eec0-0310-be40-b0cb6a0e1b4b
|